Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir",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.001501/0.001501, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.969/1.969, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001171/0.001171, allocations: 88.44 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005365/0.0005366, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3483, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.076/2.425, allocations: 0.7293 GB / 1.095 GB, free: 22.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/2.425, allocations: 89.75 kB / 1.095 GB, free: 22.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4144/2.84, allocations: 40.06 MB / 1.134 GB, free: 146.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.513e-06/2.84, allocations: 0 / 1.134 GB, free: 146.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.274e-05/2.84, allocations: 3.344 kB / 1.134 GB, free: 146.3 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001132/2.841, allocations: 0.5224 MB / 1.135 GB, free: 145.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/2.841, allocations: 9.219 kB / 1.135 GB, free: 145.9 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/2.841, allocations: 57.59 kB / 1.135 GB, free: 145.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005204/2.846, allocations: 364.2 kB / 1.135 GB, free: 145.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/2.847, allocations: 267 kB / 1.136 GB, free: 145.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/2.847, allocations: 11.28 kB / 1.136 GB, free: 145.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/2.847, allocations: 25.73 kB / 1.136 GB, free: 145.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/2.848, allocations: 486.9 kB / 1.136 GB, free: 145.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/2.848, allocations: 0 / 1.136 GB, free: 145.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.048e-05/2.848, allocations: 5.75 kB / 1.136 GB, free: 145.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/2.848, allocations: 10.59 kB / 1.136 GB, free: 145.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/2.85, allocations: 0.499 MB / 1.137 GB, free: 145.6 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/2.853, allocations: 0.9935 MB / 1.138 GB, free: 145.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009022/2.854, allocations: 285.1 kB / 1.138 GB, free: 145.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001684/2.856, allocations: 0.6557 MB / 1.138 GB, free: 144.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/2.856, allocations: 40.84 kB / 1.138 GB, free: 144.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.805e-06/2.856, allocations: 0 / 1.138 GB, free: 144.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.001509/2.857, allocations: 404.3 kB / 1.139 GB, free: 144.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/2.858, allocations: 82.73 kB / 1.139 GB, free: 144.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.282e-05/2.858, allocations: 113 kB / 1.139 GB, free: 144.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/2.858, allocations: 28.2 kB / 1.139 GB, free: 144.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.022e-05/2.858, allocations: 177.7 kB / 1.139 GB, free: 144.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/2.858, allocations: 111.1 kB / 1.139 GB, free: 144 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/2.858, allocations: 9.938 kB / 1.139 GB, free: 144 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.983e-05/2.858, allocations: 319.9 kB / 1.14 GB, free: 143.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/2.858, allocations: 120.7 kB / 1.14 GB, free: 143.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/2.859, allocations: 196.6 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/2.859, allocations: 144.5 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/2.859, allocations: 0 / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001101/2.86, allocations: 372.9 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/2.86, allocations: 7.875 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/2.86, allocations: 7.188 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/2.86, allocations: 3.969 kB / 1.14 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007038/2.861, allocations: 76.84 kB / 1.141 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/2.861, allocations: 6.906 kB / 1.141 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/2.862, allocations: 27.62 kB / 1.141 GB, free: 143.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/2.862, allocations: 24.83 kB / 1.141 GB, free: 143.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (39): * Single equations (assignments): 39 * 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 0.0002054/2.862, allocations: 144.8 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/2.862, allocations: 15.66 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/2.864, allocations: 368 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/2.864, allocations: 7.031 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/2.864, allocations: 7.953 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/2.864, allocations: 3.609 kB / 1.141 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008814/2.864, allocations: 362 kB / 1.141 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/2.865, allocations: 0 / 1.141 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000691/2.865, allocations: 67.31 kB / 1.142 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/2.865, allocations: 0 / 1.142 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.453e-05/2.865, allocations: 6.594 kB / 1.142 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/2.865, allocations: 3.969 kB / 1.142 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.865, allocations: 3.953 kB / 1.142 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/2.867, allocations: 0.5639 MB / 1.142 GB, free: 142.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-05/2.867, allocations: 95.67 kB / 1.142 GB, free: 142.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.986e-05/2.867, allocations: 5.531 kB / 1.142 GB, free: 142.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/2.867, allocations: 16.28 kB / 1.142 GB, free: 142.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/2.868, allocations: 22.08 kB / 1.142 GB, free: 142.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.491e-05/2.868, allocations: 20.89 kB / 1.142 GB, free: 142.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.168e-05/2.868, allocations: 89.08 kB / 1.142 GB, free: 142.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.9e-07/2.868, allocations: 0 / 1.142 GB, free: 142.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001361/2.869, allocations: 273.9 kB / 1.143 GB, free: 142.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * 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 (29): * Single equations (assignments): 29 * 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.003602/2.873, allocations: 1.838 MB / 1.144 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/2.874, allocations: 287.2 kB / 1.145 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/2.874, allocations: 4.062 kB / 1.145 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004186/2.874, allocations: 148.3 kB / 1.145 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/2.875, allocations: 75.53 kB / 1.145 GB, free: 141.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/2.879, allocations: 3.356 MB / 1.148 GB, free: 139.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/2.88, allocations: 0.7435 MB / 1.149 GB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/2.88, allocations: 66.03 kB / 1.149 GB, free: 138.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.093e-06/2.88, allocations: 6.062 kB / 1.149 GB, free: 138.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.847/5.727, allocations: 9.962 MB / 1.159 GB, free: 133.7 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat does not exist to compare? outputFormat=mat