Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.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.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",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.001102/0.001102, allocations: 93.75 kB / 16.3 MB, free: 5.992 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.001158/0.001159, allocations: 183.5 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.348/1.348, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002617/0.0002618, allocations: 7.469 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1098, allocations: 50.41 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001449/0.1113, allocations: 1.058 MB / 352.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02527/0.1366, allocations: 20.38 MB / 372.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.1367, allocations: 4 kB / 372.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.1369, allocations: 7.922 kB / 372.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.1494, allocations: 4.484 MB / 377.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.15, allocations: 219.4 kB / 377.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.169e-05/0.1501, allocations: 43.92 kB / 377.4 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.053e-05/0.1502, allocations: 11.92 kB / 377.4 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.175e-05/0.1502, allocations: 23.92 kB / 377.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.459e-05/0.1503, allocations: 39.83 kB / 377.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.1503, allocations: 4 kB / 377.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01439/0.1647, allocations: 7.834 MB / 385.3 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.1648, allocations: 19.97 kB / 385.3 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.039e-05/0.1649, allocations: 37.64 kB / 385.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00635/0.1712, allocations: 2.772 MB / 388.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1713, allocations: 0 / 388.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1713, allocations: 0 / 388.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1713, allocations: 4 kB / 388.2 MB, free: 6.594 MB / 318.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.002602/0.1739, allocations: 0.8889 MB / 389 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1739, allocations: 8.031 kB / 389 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.174, allocations: 38.56 kB / 389.1 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.1741, allocations: 15.89 kB / 389.1 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.1742, allocations: 187 kB / 389.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1743, allocations: 4 kB / 389.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.1743, allocations: 0 / 389.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.1745, allocations: 83.27 kB / 389.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1745, allocations: 0 / 389.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1745, allocations: 0 / 389.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1745, allocations: 0 / 389.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.1746, allocations: 35.98 kB / 389.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002064/0.1749, allocations: 194.4 kB / 389.6 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.1751, allocations: 97.2 kB / 389.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.1752, allocations: 8.062 kB / 389.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.1752, allocations: 42.5 kB / 389.7 MB, free: 4.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.1752, allocations: 0 / 389.7 MB, free: 4.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002825/0.1755, allocations: 97.69 kB / 389.8 MB, free: 4.715 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1756, allocations: 89.05 kB / 389.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.1757, allocations: 138 kB / 390.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.1758, allocations: 25.7 kB / 390.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1759, allocations: 88.14 kB / 390.2 MB, free: 4.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.1759, allocations: 23.66 kB / 390.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.1759, allocations: 0 / 390.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1761, allocations: 318.8 kB / 390.5 MB, free: 4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.506e-05/0.1762, allocations: 15.98 kB / 390.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.897e-05/0.1762, allocations: 33.7 kB / 390.6 MB, free: 3.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.1763, allocations: 12 kB / 390.6 MB, free: 3.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1763, allocations: 4 kB / 390.6 MB, free: 3.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001665/0.1765, allocations: 85.59 kB / 390.6 MB, free: 3.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1765, allocations: 4 kB / 390.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1765, allocations: 0 / 390.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1766, allocations: 4.422 kB / 390.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.278e-05/0.1766, allocations: 12 kB / 390.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1766, allocations: 3.984 kB / 390.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.263e-05/0.1767, allocations: 7.891 kB / 390.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.1767, allocations: 4 kB / 390.7 MB, free: 3.805 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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.424e-05/0.1768, allocations: 113.8 kB / 390.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.1768, allocations: 7.938 kB / 390.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.1771, allocations: 105.4 kB / 390.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1771, allocations: 3.953 kB / 390.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.1771, allocations: 0 / 390.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1771, allocations: 3.938 kB / 390.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.1772, allocations: 181.6 kB / 391.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1773, allocations: 384 / 391.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.971e-05/0.1773, allocations: 19.98 kB / 391.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1773, allocations: 0 / 391.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1773, allocations: 0 / 391.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1773, allocations: 3.938 kB / 391.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1774, allocations: 8.078 kB / 391.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.1776, allocations: 123.6 kB / 391.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.1777, allocations: 97.08 kB / 391.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.1777, allocations: 0 / 391.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.44e-05/0.1778, allocations: 11.89 kB / 391.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.1778, allocations: 3.984 kB / 391.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1778, allocations: 11.94 kB / 391.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.1779, allocations: 111.2 kB / 391.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1779, allocations: 0 / 391.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002677/0.1806, allocations: 0.9252 MB / 392.4 MB, free: 1.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.004356/0.185, allocations: 1.849 MB / 394.2 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002166/0.1852, allocations: 51.97 kB / 394.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.1852, allocations: 0 / 394.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.1853, allocations: 31.92 kB / 394.3 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.1856, allocations: 15.98 kB / 394.3 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.1879, allocations: 1.09 MB / 395.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1882, allocations: 0.6887 MB / 396.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.029e-05/0.1883, allocations: 15.98 kB / 396.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.943e-05/0.1883, allocations: 19.38 kB / 396.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1884, allocations: 0 / 396.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05141/0.2398, allocations: 29.31 MB / 425.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.24, allocations: 232.3 kB / 425.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.008/3.248, allocations: 0 / 425.7 MB, free: 0.6445 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat