Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.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.DryAir2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",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.001516/0.001516, allocations: 178 kB / 8.363 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.086/2.086, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.00115/0.00115, allocations: 96.22 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.385e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3687, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.084/2.453, allocations: 0.6378 GB / 0.9917 GB, free: 112.2 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/2.453, allocations: 76.45 kB / 0.9918 GB, free: 112.2 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4817/2.935, allocations: 147.4 MB / 1.136 GB, free: 15.58 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.124e-06/2.935, allocations: 0 / 1.136 GB, free: 15.58 MB / 427.1 MB Notification: Performance of Transformations before backend: time 3.273e-05/2.935, allocations: 15.91 kB / 1.136 GB, free: 15.57 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001551/2.936, allocations: 0.6564 MB / 1.136 GB, free: 14.87 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/2.936, allocations: 12.03 kB / 1.136 GB, free: 14.86 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007824/2.937, allocations: 83.34 kB / 1.136 GB, free: 14.78 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/2.938, allocations: 329 kB / 1.137 GB, free: 14.43 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/2.938, allocations: 12 kB / 1.137 GB, free: 14.41 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.181e-05/2.938, allocations: 27.95 kB / 1.137 GB, free: 14.39 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000642/2.939, allocations: 257.5 kB / 1.137 GB, free: 14.14 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007674/2.939, allocations: 390.8 kB / 1.137 GB, free: 13.71 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/2.939, allocations: 7.938 kB / 1.137 GB, free: 13.7 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.703e-05/2.939, allocations: 0 / 1.137 GB, free: 13.7 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/2.94, allocations: 12 kB / 1.137 GB, free: 13.69 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/2.958, allocations: 6.272 MB / 1.144 GB, free: 6.871 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005839/2.958, allocations: 246.9 kB / 1.144 GB, free: 6.621 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/2.958, allocations: 140.8 kB / 1.144 GB, free: 6.48 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01484/2.973, allocations: 3.495 MB / 1.147 GB, free: 2.703 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/2.973, allocations: 30.56 kB / 1.147 GB, free: 2.664 MB / 427.1 MB Notification: Performance of pre-optimization done (n=35): time 4.218e-06/2.973, allocations: 4 kB / 1.147 GB, free: 2.66 MB / 427.1 MB Notification: Performance of matching and sorting (n=45): time 0.008763/2.982, allocations: 1.616 MB / 1.149 GB, free: 0.9805 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/2.982, allocations: 55.41 kB / 1.149 GB, free: 0.9141 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/2.983, allocations: 230.2 kB / 1.149 GB, free: 0.6836 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/2.983, allocations: 25.7 kB / 1.149 GB, free: 0.6523 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/2.983, allocations: 282.3 kB / 1.149 GB, free: 380 kB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/2.983, allocations: 157.7 kB / 1.15 GB, free: 220 kB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/2.983, allocations: 0 / 1.15 GB, free: 220 kB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.3115/3.295, allocations: 346.7 kB / 1.15 GB, free: 91.34 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005194/3.295, allocations: 130.2 kB / 1.15 GB, free: 91.34 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003951/3.296, allocations: 248.8 kB / 1.15 GB, free: 91.21 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001982/3.298, allocations: 330.3 kB / 1.151 GB, free: 91.2 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/3.298, allocations: 2.375 kB / 1.151 GB, free: 91.2 MB / 427.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002911/3.3, allocations: 0.6579 MB / 1.151 GB, free: 91.14 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/3.301, allocations: 5.094 kB / 1.151 GB, free: 91.14 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/3.301, allocations: 3.719 kB / 1.151 GB, free: 91.14 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005816/3.301, allocations: 113.4 kB / 1.151 GB, free: 91.12 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/3.302, allocations: 111 kB / 1.152 GB, free: 91.12 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/3.305, allocations: 2.522 MB / 1.154 GB, free: 88.91 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006316/3.306, allocations: 25.75 kB / 1.154 GB, free: 88.91 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.914e-05/3.306, allocations: 19.28 kB / 1.154 GB, free: 88.91 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/3.306, allocations: 121.8 kB / 1.154 GB, free: 88.8 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002381/3.308, allocations: 0.5543 MB / 1.155 GB, free: 88.74 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.125e-05/3.308, allocations: 38.34 kB / 1.155 GB, free: 88.74 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002076/3.311, allocations: 0.8008 MB / 1.155 GB, free: 88.66 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/3.311, allocations: 3.906 kB / 1.156 GB, free: 88.66 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/3.311, allocations: 3.531 kB / 1.156 GB, free: 88.66 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001718/3.312, allocations: 0.9185 MB / 1.156 GB, free: 88.27 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/3.315, allocations: 1.378 MB / 1.158 GB, free: 87.96 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/3.316, allocations: 0.5938 kB / 1.158 GB, free: 87.96 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006037/3.316, allocations: 77.7 kB / 1.158 GB, free: 87.96 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007643/3.317, allocations: 182.8 kB / 1.158 GB, free: 87.94 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/3.317, allocations: 7.594 kB / 1.158 GB, free: 87.94 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/3.318, allocations: 1.357 MB / 1.159 GB, free: 86.89 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/3.318, allocations: 0 / 1.159 GB, free: 86.89 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/3.321, allocations: 1.181 MB / 1.16 GB, free: 86.68 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/3.321, allocations: 115.3 kB / 1.161 GB, free: 86.57 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/3.321, allocations: 6.75 kB / 1.161 GB, free: 86.57 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004822/3.322, allocations: 25.61 kB / 1.161 GB, free: 86.56 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/3.322, allocations: 33.98 kB / 1.161 GB, free: 86.56 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/3.322, allocations: 21.67 kB / 1.161 GB, free: 86.56 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002288/3.322, allocations: 176.1 kB / 1.161 GB, free: 86.48 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.01e-07/3.322, allocations: 0 / 1.161 GB, free: 86.48 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001394/3.323, allocations: 223.6 kB / 1.161 GB, free: 86.48 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004838/3.328, allocations: 2.14 MB / 1.163 GB, free: 85.67 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/3.33, allocations: 0.6375 MB / 1.164 GB, free: 85.56 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/3.33, allocations: 0 / 1.164 GB, free: 85.56 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00093/3.331, allocations: 395.2 kB / 1.164 GB, free: 85.55 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/3.333, allocations: 179.8 kB / 1.164 GB, free: 85.55 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/3.336, allocations: 1.107 MB / 1.165 GB, free: 85.26 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/3.337, allocations: 0.8423 MB / 1.166 GB, free: 84.56 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/3.337, allocations: 164.2 kB / 1.166 GB, free: 84.55 MB / 427.1 MB Notification: Performance of SimCode: time 1.302e-06/3.337, allocations: 0 / 1.166 GB, free: 84.55 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.059/6.396, allocations: 14.95 MB / 1.181 GB, free: 83.89 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat