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.0008642/0.0008682, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001083/0.001084, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.345/1.345, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002436, allocations: 6.281 kB / 300.9 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 50.43 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001339/0.1109, allocations: 1.074 MB / 352.4 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02757/0.1384, allocations: 22.04 MB / 374.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.1386, allocations: 3.938 kB / 374.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.1388, allocations: 11.98 kB / 374.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01485/0.1536, allocations: 4.477 MB / 378.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000688/0.1544, allocations: 211.1 kB / 379.1 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.1545, allocations: 83.67 kB / 379.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.806e-05/0.1546, allocations: 11.92 kB / 379.2 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.62e-05/0.1546, allocations: 31.86 kB / 379.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.583e-05/0.1547, allocations: 39.89 kB / 379.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.1547, allocations: 4 kB / 379.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01535/0.1701, allocations: 7.748 MB / 387.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/0.1702, allocations: 19.86 kB / 387.1 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.721e-05/0.1702, allocations: 29.7 kB / 387.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006562/0.1768, allocations: 2.791 MB / 389.9 MB, free: 4.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1768, allocations: 4 kB / 389.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1769, allocations: 0 / 389.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1769, allocations: 0 / 389.9 MB, free: 4.941 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.00259/0.1795, allocations: 0.8967 MB / 390.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.759e-05/0.1795, allocations: 12.03 kB / 390.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.1796, allocations: 30.56 kB / 390.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.1797, allocations: 7.906 kB / 390.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.1798, allocations: 195 kB / 391 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1799, allocations: 4 kB / 391 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.1799, allocations: 4 kB / 391 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.1801, allocations: 75.28 kB / 391.1 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1801, allocations: 0 / 391.1 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.1801, allocations: 3.984 kB / 391.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1801, allocations: 4 kB / 391.1 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.1802, allocations: 27.98 kB / 391.2 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002038/0.1804, allocations: 190.6 kB / 391.3 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.1807, allocations: 97.11 kB / 391.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.847e-05/0.1808, allocations: 29.77 kB / 391.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.812e-05/0.1809, allocations: 8 kB / 391.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1809, allocations: 42.52 kB / 391.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.1809, allocations: 0 / 391.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002851/0.1812, allocations: 105.5 kB / 391.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.1813, allocations: 81.09 kB / 391.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.1814, allocations: 142 kB / 391.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1814, allocations: 29.7 kB / 391.9 MB, free: 2.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.1815, allocations: 88.52 kB / 391.9 MB, free: 2.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.001e-05/0.1815, allocations: 19.66 kB / 392 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.1815, allocations: 0 / 392 MB, free: 2.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1816, allocations: 318.8 kB / 392.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.1817, allocations: 19.92 kB / 392.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-05/0.1818, allocations: 33.64 kB / 392.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.09e-05/0.1819, allocations: 20 kB / 392.3 MB, free: 2.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1819, allocations: 4 kB / 392.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001631/0.182, allocations: 81.59 kB / 392.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1821, allocations: 8 kB / 392.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1821, allocations: 3.953 kB / 392.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1821, allocations: 0 / 392.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.008e-05/0.1822, allocations: 8 kB / 392.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1822, allocations: 0 / 392.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.959e-05/0.1822, allocations: 8.031 kB / 392.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.1822, allocations: 4 kB / 392.5 MB, free: 2.113 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 9.377e-05/0.1823, allocations: 121.8 kB / 392.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.1823, allocations: 4 kB / 392.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.1826, allocations: 97.41 kB / 392.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1826, allocations: 7.953 kB / 392.7 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1826, allocations: 3.984 kB / 392.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1826, allocations: 0 / 392.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1827, allocations: 173.6 kB / 392.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1828, allocations: 0 / 392.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.795e-05/0.1828, allocations: 19.92 kB / 392.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.1828, allocations: 4 kB / 392.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.1828, allocations: 4 kB / 392.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1828, allocations: 0 / 392.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.1829, allocations: 3.953 kB / 392.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.183, allocations: 102.5 kB / 393 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/0.1831, allocations: 96.98 kB / 393.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.1831, allocations: 8 kB / 393.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.528e-05/0.1832, allocations: 4 kB / 393.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.1833, allocations: 11.94 kB / 393.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.1833, allocations: 7.938 kB / 393.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.457e-05/0.1834, allocations: 107.3 kB / 393.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1834, allocations: 0 / 393.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00273/0.1861, allocations: 0.9254 MB / 394.1 MB, free: 332 kB / 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.004329/0.1905, allocations: 1.774 MB / 395.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002121/0.1907, allocations: 43.92 kB / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1907, allocations: 0 / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.376e-05/0.1908, allocations: 31.92 kB / 396 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.1911, allocations: 23.94 kB / 396 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.1928, allocations: 0.9464 MB / 397 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.1931, allocations: 0.6848 MB / 397.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.758e-05/0.1931, allocations: 15.98 kB / 397.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.1932, allocations: 23.42 kB / 397.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1932, allocations: 0 / 397.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2353/0.4285, allocations: 29.32 MB / 427 MB, free: 66.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002586/0.4288, allocations: 227.4 kB / 427.2 MB, free: 66.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.147/3.575, allocations: 0 / 427.2 MB, free: 66.05 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