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.001398/0.001398, allocations: 95.34 kB / 16.3 MB, free: 5.996 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.001658/0.001658, allocations: 184 kB / 17.2 MB, free: 5.914 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.36/1.36, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.000286, allocations: 6.25 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 50.44 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.00162/0.1143, allocations: 1.035 MB / 352.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.3492/0.4635, allocations: 125.7 MB / 478 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.4636, allocations: 0 / 478 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.885e-05/0.4637, allocations: 7.984 kB / 478 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006941/0.4644, allocations: 194.7 kB / 478.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005625/0.4649, allocations: 277.4 kB / 478.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.826e-05/0.465, allocations: 39.02 kB / 478.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.269e-05/0.4651, allocations: 10.17 kB / 478.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.798e-05/0.4651, allocations: 21.66 kB / 478.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.094e-05/0.4652, allocations: 25.61 kB / 478.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.4652, allocations: 2.531 kB / 478.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008784/0.4661, allocations: 0.4925 MB / 479.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.4661, allocations: 5.094 kB / 479.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.4661, allocations: 37.52 kB / 479.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.4665, allocations: 273 kB / 479.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.4665, allocations: 0 / 479.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4665, allocations: 0 / 479.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.4665, allocations: 0 / 479.4 MB, free: 10.26 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.0004532/0.467, allocations: 416.5 kB / 479.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.467, allocations: 10.28 kB / 479.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.4671, allocations: 36.67 kB / 479.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.4681, allocations: 95.55 kB / 479.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.4684, allocations: 211 kB / 480.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.4684, allocations: 0 / 480.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.4684, allocations: 9.656 kB / 480.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.4686, allocations: 92.11 kB / 480.2 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.4686, allocations: 3.953 kB / 480.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.4687, allocations: 0 / 480.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.4687, allocations: 2.844 kB / 480.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.4688, allocations: 41.42 kB / 480.3 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002444/0.4691, allocations: 215.3 kB / 480.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.4695, allocations: 121.9 kB / 480.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/0.4701, allocations: 0.9814 MB / 481.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.4702, allocations: 40.47 kB / 481.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.4702, allocations: 2.812 kB / 481.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004241/0.4706, allocations: 130.2 kB / 481.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.4707, allocations: 81.05 kB / 481.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.4709, allocations: 153.7 kB / 482 MB, free: 7.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.4709, allocations: 28.8 kB / 482 MB, free: 7.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.4709, allocations: 83.08 kB / 482.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.471, allocations: 25.53 kB / 482.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.471, allocations: 7.375 kB / 482.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4711, allocations: 316.6 kB / 482.4 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.118e-05/0.4712, allocations: 22.98 kB / 482.4 MB, free: 7.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.4713, allocations: 51.19 kB / 482.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.4715, allocations: 36.69 kB / 482.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4715, allocations: 0 / 482.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002795/0.4718, allocations: 121.8 kB / 482.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4718, allocations: 7.781 kB / 482.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4718, allocations: 0 / 482.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.4718, allocations: 0 / 482.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.4719, allocations: 29.12 kB / 482.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.472, allocations: 2.531 kB / 482.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.4721, allocations: 13.61 kB / 482.7 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.4722, allocations: 9.984 kB / 482.7 MB, free: 7.098 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.556e-05/0.4723, allocations: 115.4 kB / 482.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.4723, allocations: 5.562 kB / 482.8 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005106/0.4728, allocations: 234.7 kB / 483.1 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.4728, allocations: 2.375 kB / 483.1 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.4728, allocations: 5.266 kB / 483.1 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4729, allocations: 2.875 kB / 483.1 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.473, allocations: 225.6 kB / 483.3 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4731, allocations: 0 / 483.3 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.4732, allocations: 23.09 kB / 483.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4732, allocations: 0 / 483.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.4733, allocations: 10.83 kB / 483.3 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4733, allocations: 0 / 483.3 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4733, allocations: 6.531 kB / 483.3 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004261/0.4737, allocations: 187.1 kB / 483.5 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/0.4738, allocations: 91.28 kB / 483.6 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.4738, allocations: 9.938 kB / 483.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.474, allocations: 6.547 kB / 483.6 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.4741, allocations: 13.53 kB / 483.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4741, allocations: 9.484 kB / 483.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.4743, allocations: 129.1 kB / 483.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4743, allocations: 0 / 483.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004521/0.4747, allocations: 126.5 kB / 483.9 MB, free: 6.293 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.001251/0.476, allocations: 0.9952 MB / 484.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.4763, allocations: 75.16 kB / 485 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4763, allocations: 2.906 kB / 485 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.4764, allocations: 35.38 kB / 485 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.4766, allocations: 17.28 kB / 485 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.4784, allocations: 1.352 MB / 486.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.4787, allocations: 0.6966 MB / 487.1 MB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006131/0.4793, allocations: 425.6 kB / 487.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.4795, allocations: 49.41 kB / 487.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4795, allocations: 0 / 487.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.4966, allocations: 6.155 MB / 493.7 MB, free: 400 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/0.4969, allocations: 241.6 kB / 493.9 MB, free: 152 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.311, allocations: 0 / 493.9 MB, free: 152 kB / 366.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