Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007485/0.0007486, allocations: 89.02 kB / 16.31 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009253/0.0009256, allocations: 177.7 kB / 17.2 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.3 MB / 241.2 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.000242, allocations: 8.156 kB / 300.9 MB, free: 6.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09261, allocations: 50.42 MB / 351.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001354/0.094, allocations: 1.074 MB / 352.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.3566/0.4506, allocations: 135.1 MB / 487.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.881e-05/0.4507, allocations: 0 / 487.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.195e-05/0.4507, allocations: 3.984 kB / 487.5 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.4515, allocations: 179.4 kB / 487.7 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008412/0.4523, allocations: 289.9 kB / 487.9 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.9e-05/0.4524, allocations: 50.83 kB / 488 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.433e-05/0.4524, allocations: 10.94 kB / 488 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.193e-05/0.4525, allocations: 24.66 kB / 488 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.396e-05/0.4525, allocations: 22.33 kB / 488 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.4526, allocations: 3.219 kB / 488 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008073/0.4534, allocations: 475.6 kB / 488.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.4534, allocations: 7.234 kB / 488.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.406e-05/0.4534, allocations: 34.33 kB / 488.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.4539, allocations: 300.3 kB / 488.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4539, allocations: 4 kB / 488.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4539, allocations: 0 / 488.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.4539, allocations: 0 / 488.8 MB, free: 8.316 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005721/0.4545, allocations: 419.1 kB / 489.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4545, allocations: 7.562 kB / 489.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.4546, allocations: 33.94 kB / 489.3 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009952/0.4556, allocations: 99.61 kB / 489.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.4558, allocations: 214.2 kB / 489.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.4558, allocations: 2.219 kB / 489.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.4559, allocations: 2.906 kB / 489.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.4561, allocations: 93.3 kB / 489.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.4561, allocations: 3.953 kB / 489.7 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.4561, allocations: 3.938 kB / 489.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4561, allocations: 6.781 kB / 489.7 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.4563, allocations: 41.39 kB / 489.8 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.4565, allocations: 209.5 kB / 490 MB, free: 7.285 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.4569, allocations: 128.5 kB / 490.1 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.457, allocations: 39.75 kB / 490.1 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005988/0.4576, allocations: 0.9853 MB / 491.1 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.4577, allocations: 38.5 kB / 491.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.4577, allocations: 0 / 491.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004122/0.4581, allocations: 132.1 kB / 491.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.4582, allocations: 91.36 kB / 491.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.4584, allocations: 148 kB / 491.5 MB, free: 5.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.4584, allocations: 28.64 kB / 491.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.4584, allocations: 82.27 kB / 491.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.4585, allocations: 28.08 kB / 491.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.4585, allocations: 0 / 491.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4586, allocations: 317 kB / 492 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.4587, allocations: 31.56 kB / 492 MB, free: 5.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.778e-05/0.4588, allocations: 47.31 kB / 492 MB, free: 5.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.335e-05/0.4589, allocations: 28.89 kB / 492.1 MB, free: 5.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4589, allocations: 0 / 492.1 MB, free: 5.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002691/0.4592, allocations: 127.6 kB / 492.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.4592, allocations: 7.938 kB / 492.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4592, allocations: 3.953 kB / 492.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.897e-06/0.4592, allocations: 3.938 kB / 492.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.4593, allocations: 27.78 kB / 492.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.4594, allocations: 0 / 492.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.4595, allocations: 8.156 kB / 492.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.4595, allocations: 6.891 kB / 492.2 MB, free: 5.121 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.367e-05/0.4596, allocations: 116.2 kB / 492.4 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.4597, allocations: 6.781 kB / 492.4 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005193/0.4602, allocations: 243.3 kB / 492.6 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4602, allocations: 3.953 kB / 492.6 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4602, allocations: 6.844 kB / 492.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4602, allocations: 0.9375 kB / 492.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.4604, allocations: 210.5 kB / 492.8 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4604, allocations: 2.938 kB / 492.8 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.4606, allocations: 18.84 kB / 492.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4606, allocations: 3.281 kB / 492.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.4606, allocations: 3.25 kB / 492.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.4606, allocations: 4.578 kB / 492.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4606, allocations: 2.562 kB / 492.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003619/0.461, allocations: 184 kB / 493 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.687e-05/0.4611, allocations: 100.7 kB / 493.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.4611, allocations: 2.25 kB / 493.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.4613, allocations: 6 kB / 493.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.4613, allocations: 10.78 kB / 493.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.4613, allocations: 5.031 kB / 493.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.4615, allocations: 135.1 kB / 493.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4615, allocations: 0 / 493.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004189/0.4619, allocations: 128.7 kB / 493.4 MB, free: 4.324 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.463, allocations: 0.9203 MB / 494.3 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002324/0.4633, allocations: 72.47 kB / 494.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.4633, allocations: 0 / 494.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.4634, allocations: 45.34 kB / 494.4 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.4636, allocations: 11.8 kB / 494.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.465, allocations: 0.8969 MB / 495.4 MB, free: 2.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.4653, allocations: 0.6957 MB / 496.1 MB, free: 2.238 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005675/0.4658, allocations: 428.7 kB / 496.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.466, allocations: 48.89 kB / 496.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.466, allocations: 0 / 496.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.4821, allocations: 6.158 MB / 0.4909 GB, free: 14.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.4823, allocations: 245.7 kB / 0.4911 GB, free: 14.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.458, allocations: 0 / 0.4911 GB, free: 14.7 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat