Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001539/0.001538, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.136/2.136, allocations: 205.4 MB / 222.5 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001197/0.001197, allocations: 94.91 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003941, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3337, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.985/2.319, allocations: 0.6443 GB / 1.01 GB, free: 100.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/2.319, allocations: 73.53 kB / 1.01 GB, free: 100.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5628/2.882, allocations: 117.2 MB / 1.125 GB, free: 136.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.325e-06/2.882, allocations: 0 / 1.125 GB, free: 136.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.437e-06/2.882, allocations: 3.969 kB / 1.125 GB, free: 136.6 MB / 426.7 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.00155/2.883, allocations: 0.5762 MB / 1.125 GB, free: 136.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/2.883, allocations: 7.875 kB / 1.125 GB, free: 136.2 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.301e-05/2.883, allocations: 36.06 kB / 1.125 GB, free: 136.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/2.884, allocations: 14.45 kB / 1.125 GB, free: 136.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/2.884, allocations: 171.8 kB / 1.126 GB, free: 136 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/2.884, allocations: 7.281 kB / 1.126 GB, free: 136 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/2.884, allocations: 4.516 kB / 1.126 GB, free: 136 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/2.884, allocations: 67.45 kB / 1.126 GB, free: 135.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/2.884, allocations: 2.094 kB / 1.126 GB, free: 135.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/2.884, allocations: 0.75 kB / 1.126 GB, free: 135.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/2.884, allocations: 2.297 kB / 1.126 GB, free: 135.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/2.884, allocations: 24.38 kB / 1.126 GB, free: 135.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002085/2.885, allocations: 175.3 kB / 1.126 GB, free: 135.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/2.885, allocations: 86.17 kB / 1.126 GB, free: 135.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1402/3.025, allocations: 35.41 MB / 1.16 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/3.025, allocations: 45.8 kB / 1.16 GB, free: 117.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 3.106e-06/3.025, allocations: 0 / 1.16 GB, free: 117.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004799/3.026, allocations: 85.3 kB / 1.161 GB, free: 117.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/3.026, allocations: 83.48 kB / 1.161 GB, free: 117.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.783e-05/3.026, allocations: 103.8 kB / 1.161 GB, free: 117.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/3.026, allocations: 29.2 kB / 1.161 GB, free: 117.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/3.026, allocations: 156 kB / 1.161 GB, free: 117 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/3.026, allocations: 23.08 kB / 1.161 GB, free: 117 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-06/3.026, allocations: 0 / 1.161 GB, free: 117 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.269e-05/3.026, allocations: 316.6 kB / 1.161 GB, free: 116.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.52e-05/3.026, allocations: 10 kB / 1.161 GB, free: 116.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.093e-05/3.026, allocations: 23.45 kB / 1.161 GB, free: 116.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.176e-05/3.026, allocations: 21.33 kB / 1.161 GB, free: 116.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/3.026, allocations: 0 / 1.161 GB, free: 116.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002481/3.027, allocations: 71.58 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/3.027, allocations: 7.25 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/3.027, allocations: 3.953 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/3.027, allocations: 2.938 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/3.027, allocations: 7.781 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/3.027, allocations: 6.344 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.918e-05/3.027, allocations: 5.484 kB / 1.161 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/3.027, allocations: 3.969 kB / 1.161 GB, free: 116.6 MB / 426.7 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.056e-05/3.027, allocations: 116.2 kB / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/3.027, allocations: 7.75 kB / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000391/3.028, allocations: 104.1 kB / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/3.028, allocations: 7.672 kB / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/3.028, allocations: 0 / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/3.028, allocations: 7.375 kB / 1.162 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/3.028, allocations: 167.6 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/3.028, allocations: 1.625 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/3.028, allocations: 13.72 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/3.028, allocations: 3.656 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/3.028, allocations: 0 / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/3.028, allocations: 3.281 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/3.028, allocations: 3.953 kB / 1.162 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/3.028, allocations: 114.9 kB / 1.162 GB, free: 116.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.886e-05/3.028, allocations: 84.8 kB / 1.162 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/3.028, allocations: 3.938 kB / 1.162 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/3.028, allocations: 14.81 kB / 1.162 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/3.029, allocations: 14.08 kB / 1.162 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/3.029, allocations: 3.688 kB / 1.162 GB, free: 116.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.616e-05/3.029, allocations: 90.3 kB / 1.162 GB, free: 116 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/3.029, allocations: 4 kB / 1.162 GB, free: 116 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001492/3.03, allocations: 335.6 kB / 1.162 GB, free: 115.9 MB / 426.7 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.003679/3.034, allocations: 1.33 MB / 1.164 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003165/3.034, allocations: 38.06 kB / 1.164 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/3.034, allocations: 0 / 1.164 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/3.034, allocations: 23.75 kB / 1.164 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/3.035, allocations: 7.422 kB / 1.164 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/3.037, allocations: 0.8383 MB / 1.165 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/3.037, allocations: 0.6933 MB / 1.165 GB, free: 113.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/3.037, allocations: 28.98 kB / 1.165 GB, free: 113.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/3.037, allocations: 0 / 1.165 GB, free: 113.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/5.672, allocations: 7.022 MB / 1.172 GB, free: 112.4 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat