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.00157/0.00157, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.034/2.034, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001154/0.001153, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.462e-05/4.477e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1383, allocations: 47.57 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.159/2.297, allocations: 0.6384 GB / 0.9989 GB, free: 18.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/2.297, allocations: 76.02 kB / 0.999 GB, free: 18.76 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7635/3.061, allocations: 147.9 MB / 1.143 GB, free: 48.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.905e-06/3.061, allocations: 0 / 1.143 GB, free: 48.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.094e-05/3.061, allocations: 12 kB / 1.143 GB, free: 48.68 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001468/3.063, allocations: 0.6622 MB / 1.144 GB, free: 47.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/3.063, allocations: 12.03 kB / 1.144 GB, free: 47.96 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.782e-05/3.063, allocations: 74.53 kB / 1.144 GB, free: 47.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007485/3.063, allocations: 79.41 kB / 1.144 GB, free: 47.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/3.064, allocations: 326.3 kB / 1.145 GB, free: 47.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/3.064, allocations: 32.72 kB / 1.145 GB, free: 47.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.309e-05/3.064, allocations: 47.95 kB / 1.145 GB, free: 47.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/3.065, allocations: 452.4 kB / 1.145 GB, free: 46.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/3.065, allocations: 0 / 1.145 GB, free: 46.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/3.065, allocations: 16 kB / 1.145 GB, free: 46.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/3.065, allocations: 12 kB / 1.145 GB, free: 46.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006556/3.066, allocations: 294.9 kB / 1.145 GB, free: 46.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01699/3.083, allocations: 6.355 MB / 1.152 GB, free: 39.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/3.084, allocations: 268.3 kB / 1.152 GB, free: 39.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/3.084, allocations: 158.1 kB / 1.152 GB, free: 39.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/3.097, allocations: 3.495 MB / 1.155 GB, free: 35.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/3.098, allocations: 46.52 kB / 1.155 GB, free: 35.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.366e-06/3.098, allocations: 0 / 1.155 GB, free: 35.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.01542/3.113, allocations: 2.261 MB / 1.158 GB, free: 33.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/3.113, allocations: 59.36 kB / 1.158 GB, free: 32.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/3.113, allocations: 271.3 kB / 1.158 GB, free: 32.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/3.114, allocations: 33.7 kB / 1.158 GB, free: 32.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/3.114, allocations: 282.4 kB / 1.158 GB, free: 32.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/3.114, allocations: 157.7 kB / 1.158 GB, free: 32.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/3.114, allocations: 12 kB / 1.158 GB, free: 32.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.652e-05/3.114, allocations: 330.8 kB / 1.159 GB, free: 31.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/3.114, allocations: 145.1 kB / 1.159 GB, free: 31.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/3.115, allocations: 267.7 kB / 1.159 GB, free: 31.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000449/3.115, allocations: 190.1 kB / 1.159 GB, free: 31.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/3.115, allocations: 4 kB / 1.159 GB, free: 31.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001468/3.117, allocations: 0.5606 MB / 1.16 GB, free: 30.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/3.117, allocations: 15.48 kB / 1.16 GB, free: 30.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/3.117, allocations: 11.98 kB / 1.16 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01477/3.132, allocations: 0.8766 MB / 1.161 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007833/3.132, allocations: 107.8 kB / 1.161 GB, free: 29.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/3.134, allocations: 2.459 MB / 1.163 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/3.135, allocations: 35.89 kB / 1.163 GB, free: 26.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/3.135, allocations: 23.94 kB / 1.163 GB, free: 26.92 MB / 426.7 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.0001656/3.135, allocations: 136.9 kB / 1.163 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.971e-05/3.136, allocations: 35.62 kB / 1.164 GB, free: 26.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/3.137, allocations: 0.8548 MB / 1.164 GB, free: 25.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/3.137, allocations: 12 kB / 1.164 GB, free: 25.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/3.137, allocations: 3.984 kB / 1.164 GB, free: 25.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001216/3.138, allocations: 0.9457 MB / 1.165 GB, free: 24.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/3.141, allocations: 1.485 MB / 1.167 GB, free: 23.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/3.141, allocations: 3.984 kB / 1.167 GB, free: 23.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/3.142, allocations: 79.89 kB / 1.167 GB, free: 23.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00502/3.147, allocations: 0.575 MB / 1.167 GB, free: 22.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/3.147, allocations: 16 kB / 1.167 GB, free: 22.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/3.148, allocations: 1.28 MB / 1.169 GB, free: 21.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/3.148, allocations: 0 / 1.169 GB, free: 21.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/3.15, allocations: 1.221 MB / 1.17 GB, free: 20.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/3.15, allocations: 124.5 kB / 1.17 GB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.196e-05/3.15, allocations: 16.06 kB / 1.17 GB, free: 19.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/3.151, allocations: 23.92 kB / 1.17 GB, free: 19.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/3.151, allocations: 23.97 kB / 1.17 GB, free: 19.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/3.151, allocations: 19.98 kB / 1.17 GB, free: 19.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002814/3.151, allocations: 207.1 kB / 1.17 GB, free: 19.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/3.151, allocations: 4 kB / 1.17 GB, free: 19.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001187/3.152, allocations: 239.9 kB / 1.17 GB, free: 19.36 MB / 426.7 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 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003722/3.156, allocations: 2.176 MB / 1.173 GB, free: 17.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001625/3.158, allocations: 0.679 MB / 1.173 GB, free: 16.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/3.158, allocations: 0 / 1.173 GB, free: 16.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/3.159, allocations: 429.2 kB / 1.174 GB, free: 16.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/3.161, allocations: 225.3 kB / 1.174 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/3.164, allocations: 1.152 MB / 1.175 GB, free: 14.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/3.164, allocations: 0.8441 MB / 1.176 GB, free: 13.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/3.165, allocations: 163.4 kB / 1.176 GB, free: 13.58 MB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/3.165, allocations: 0 / 1.176 GB, free: 13.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.478/6.643, allocations: 15.23 MB / 1.191 GB, free: 92.94 MB / 426.7 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