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.001566/0.001565, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 93.27 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.834e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4332, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.028/2.462, allocations: 0.6436 GB / 0.9975 GB, free: 114.1 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/2.462, allocations: 78.14 kB / 0.9976 GB, free: 114.1 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.304/2.766, allocations: 113.6 MB / 1.109 GB, free: 45.55 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.683e-06/2.766, allocations: 0 / 1.109 GB, free: 45.55 MB / 427.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/2.766, allocations: 0 / 1.109 GB, free: 45.55 MB / 427.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.001448/2.768, allocations: 0.5699 MB / 1.109 GB, free: 44.93 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/2.768, allocations: 8.031 kB / 1.109 GB, free: 44.93 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/2.768, allocations: 12 kB / 1.109 GB, free: 44.91 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/2.768, allocations: 183 kB / 1.109 GB, free: 44.7 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/2.768, allocations: 0 / 1.109 GB, free: 44.7 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/2.768, allocations: 7.953 kB / 1.109 GB, free: 44.69 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.97e-05/2.768, allocations: 15.98 kB / 1.109 GB, free: 44.67 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/2.768, allocations: 59.34 kB / 1.109 GB, free: 44.6 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/2.768, allocations: 0 / 1.109 GB, free: 44.6 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/2.768, allocations: 0 / 1.109 GB, free: 44.6 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/2.768, allocations: 5.031 kB / 1.109 GB, free: 44.6 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/2.769, allocations: 159.1 kB / 1.11 GB, free: 44.4 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/2.769, allocations: 65.38 kB / 1.11 GB, free: 44.32 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/2.769, allocations: 25.77 kB / 1.11 GB, free: 44.29 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1357/2.905, allocations: 35.88 MB / 1.145 GB, free: 4.973 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/2.905, allocations: 30.56 kB / 1.145 GB, free: 4.934 MB / 427.1 MB Notification: Performance of pre-optimization done (n=6): time 3.196e-06/2.905, allocations: 0 / 1.145 GB, free: 4.934 MB / 427.1 MB Notification: Performance of matching and sorting (n=6): time 0.001428/2.906, allocations: 157.5 kB / 1.145 GB, free: 4.773 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/2.906, allocations: 85.11 kB / 1.145 GB, free: 4.672 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/2.906, allocations: 97 kB / 1.145 GB, free: 4.57 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/2.906, allocations: 29.7 kB / 1.145 GB, free: 4.535 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/2.906, allocations: 158.5 kB / 1.145 GB, free: 4.379 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/2.906, allocations: 15.7 kB / 1.145 GB, free: 4.363 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/2.906, allocations: 0 / 1.145 GB, free: 4.363 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/2.907, allocations: 318.8 kB / 1.146 GB, free: 4.043 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.305e-05/2.907, allocations: 4 kB / 1.146 GB, free: 4.039 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.729e-05/2.907, allocations: 29.66 kB / 1.146 GB, free: 4.004 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/2.908, allocations: 104 kB / 1.146 GB, free: 3.902 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/2.908, allocations: 0 / 1.146 GB, free: 3.902 MB / 427.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.001127/2.909, allocations: 145.6 kB / 1.146 GB, free: 3.754 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/2.909, allocations: 8 kB / 1.146 GB, free: 3.746 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/2.909, allocations: 0 / 1.146 GB, free: 3.746 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/2.909, allocations: 0 / 1.146 GB, free: 3.746 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/2.909, allocations: 19.88 kB / 1.146 GB, free: 3.727 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/2.909, allocations: 7.938 kB / 1.146 GB, free: 3.719 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/2.909, allocations: 7.938 kB / 1.146 GB, free: 3.711 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/2.909, allocations: 4 kB / 1.146 GB, free: 3.707 MB / 427.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 () * 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 7.157e-05/2.909, allocations: 101 kB / 1.146 GB, free: 3.602 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001115/2.91, allocations: 157.4 kB / 1.146 GB, free: 3.441 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/2.91, allocations: 7.906 kB / 1.146 GB, free: 3.434 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/2.912, allocations: 189.8 kB / 1.146 GB, free: 3.238 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/2.912, allocations: 0 / 1.146 GB, free: 3.238 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/2.912, allocations: 4 kB / 1.146 GB, free: 3.234 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/2.912, allocations: 0 / 1.146 GB, free: 3.234 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/2.912, allocations: 142.2 kB / 1.146 GB, free: 3.059 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/2.912, allocations: 0 / 1.146 GB, free: 3.059 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/2.912, allocations: 11.98 kB / 1.146 GB, free: 3.047 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/2.912, allocations: 0 / 1.146 GB, free: 3.047 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/2.912, allocations: 4 kB / 1.146 GB, free: 3.043 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/2.912, allocations: 4.125 kB / 1.146 GB, free: 3.039 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/2.912, allocations: 3.953 kB / 1.146 GB, free: 3.035 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/2.913, allocations: 203.5 kB / 1.147 GB, free: 2.809 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.392e-05/2.913, allocations: 89.08 kB / 1.147 GB, free: 2.703 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/2.913, allocations: 0 / 1.147 GB, free: 2.703 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/2.914, allocations: 7.953 kB / 1.147 GB, free: 2.695 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/2.914, allocations: 8.266 kB / 1.147 GB, free: 2.688 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/2.914, allocations: 8 kB / 1.147 GB, free: 2.68 MB / 427.1 MB Notification: Performance of sorting global known variables: time 5.088e-05/2.914, allocations: 99.5 kB / 1.147 GB, free: 2.582 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.81e-07/2.914, allocations: 0 / 1.147 GB, free: 2.582 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001589/2.915, allocations: 335.5 kB / 1.147 GB, free: 2.254 MB / 427.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 () * 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.004132/2.92, allocations: 1.425 MB / 1.149 GB, free: 0.7969 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/2.92, allocations: 24 kB / 1.149 GB, free: 0.7734 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/2.92, allocations: 0 / 1.149 GB, free: 0.7734 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 5.396e-05/2.92, allocations: 23.92 kB / 1.149 GB, free: 0.75 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/2.92, allocations: 4 kB / 1.149 GB, free: 0.7461 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/2.921, allocations: 314.8 kB / 1.149 GB, free: 404 kB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2815/3.203, allocations: 0.6857 MB / 1.15 GB, free: 130 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/3.203, allocations: 34.14 kB / 1.15 GB, free: 130 MB / 427.1 MB Notification: Performance of SimCode: time 1.743e-06/3.203, allocations: 0 / 1.15 GB, free: 130 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.682/5.885, allocations: 7.116 MB / 1.157 GB, free: 129.4 MB / 427.1 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