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.002355/0.002355, 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.155/2.155, 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.001144/0.001144, allocations: 97.09 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.811e-05, allocations: 4 kB / 314.9 MB, free: 9.086 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.4084, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.207/2.616, allocations: 0.7286 GB / 1.083 GB, free: 63.3 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/2.616, allocations: 76.47 kB / 1.083 GB, free: 63.26 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1414/2.758, allocations: 39.3 MB / 1.121 GB, free: 30.69 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.392e-06/2.758, allocations: 0 / 1.121 GB, free: 30.69 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/2.758, allocations: 4 kB / 1.121 GB, free: 30.68 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001019/2.759, allocations: 0.516 MB / 1.121 GB, free: 30.12 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/2.759, allocations: 8.031 kB / 1.121 GB, free: 30.11 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004917/2.764, allocations: 369.1 kB / 1.122 GB, free: 29.75 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/2.764, allocations: 250.9 kB / 1.122 GB, free: 29.47 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/2.764, allocations: 8 kB / 1.122 GB, free: 29.46 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/2.765, allocations: 15.89 kB / 1.122 GB, free: 29.45 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001216/2.766, allocations: 472.6 kB / 1.123 GB, free: 28.98 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006592/2.766, allocations: 317.4 kB / 1.123 GB, free: 28.66 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/2.766, allocations: 4 kB / 1.123 GB, free: 28.66 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/2.767, allocations: 4 kB / 1.123 GB, free: 28.66 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/2.767, allocations: 4 kB / 1.123 GB, free: 28.65 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or 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.003079/2.77, allocations: 0.9387 MB / 1.124 GB, free: 27.68 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/2.77, allocations: 257.1 kB / 1.124 GB, free: 27.41 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/2.771, allocations: 133.3 kB / 1.124 GB, free: 27.27 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00166/2.772, allocations: 0.6593 MB / 1.125 GB, free: 26.5 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/2.772, allocations: 46.48 kB / 1.125 GB, free: 26.45 MB / 427.1 MB Notification: Performance of pre-optimization done (n=29): time 3.066e-06/2.772, allocations: 0 / 1.125 GB, free: 26.45 MB / 427.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009286/2.773, allocations: 262.4 kB / 1.125 GB, free: 26.19 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/2.773, allocations: 85.03 kB / 1.125 GB, free: 26.09 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.101e-05/2.773, allocations: 105.3 kB / 1.125 GB, free: 25.98 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.669e-05/2.773, allocations: 25.7 kB / 1.125 GB, free: 25.95 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/2.774, allocations: 186.9 kB / 1.125 GB, free: 25.76 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.365e-05/2.774, allocations: 102.4 kB / 1.126 GB, free: 25.66 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/2.774, allocations: 0 / 1.126 GB, free: 25.66 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.53e-05/2.774, allocations: 330.8 kB / 1.126 GB, free: 25.33 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/2.774, allocations: 100.6 kB / 1.126 GB, free: 25.23 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/2.774, allocations: 179.3 kB / 1.126 GB, free: 25.02 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/2.775, allocations: 120.9 kB / 1.126 GB, free: 24.9 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/2.775, allocations: 4 kB / 1.126 GB, free: 24.89 MB / 427.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008372/2.776, allocations: 313.4 kB / 1.127 GB, free: 24.58 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/2.776, allocations: 11.95 kB / 1.127 GB, free: 24.57 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/2.776, allocations: 7.984 kB / 1.127 GB, free: 24.56 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/2.776, allocations: 4 kB / 1.127 GB, free: 24.56 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006842/2.776, allocations: 71.91 kB / 1.127 GB, free: 24.49 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/2.776, allocations: 11.92 kB / 1.127 GB, free: 24.48 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/2.777, allocations: 27.69 kB / 1.127 GB, free: 24.45 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/2.777, allocations: 24.17 kB / 1.127 GB, free: 24.43 MB / 427.1 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 () * 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.0001422/2.777, allocations: 108.9 kB / 1.127 GB, free: 24.31 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007601/2.778, allocations: 270 kB / 1.127 GB, free: 24.04 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/2.778, allocations: 15.86 kB / 1.127 GB, free: 24.03 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/2.779, allocations: 343.7 kB / 1.127 GB, free: 23.69 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/2.779, allocations: 8 kB / 1.127 GB, free: 23.68 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/2.779, allocations: 0 / 1.127 GB, free: 23.68 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/2.779, allocations: 7.922 kB / 1.127 GB, free: 23.67 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000816/2.78, allocations: 320.8 kB / 1.128 GB, free: 23.32 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/2.78, allocations: 0 / 1.128 GB, free: 23.32 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006614/2.781, allocations: 59.91 kB / 1.128 GB, free: 23.27 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.939e-06/2.781, allocations: 4 kB / 1.128 GB, free: 23.26 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/2.781, allocations: 8 kB / 1.128 GB, free: 23.25 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/2.781, allocations: 3.984 kB / 1.128 GB, free: 23.25 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/2.781, allocations: 3.938 kB / 1.128 GB, free: 23.25 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009512/2.782, allocations: 0.5204 MB / 1.128 GB, free: 22.7 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.659e-05/2.782, allocations: 93.02 kB / 1.128 GB, free: 22.59 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.904e-05/2.782, allocations: 8.125 kB / 1.128 GB, free: 22.59 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/2.782, allocations: 7.984 kB / 1.128 GB, free: 22.58 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/2.782, allocations: 19.97 kB / 1.128 GB, free: 22.56 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-05/2.783, allocations: 23.98 kB / 1.128 GB, free: 22.54 MB / 427.1 MB Notification: Performance of sorting global known variables: time 4.707e-05/2.783, allocations: 83.28 kB / 1.129 GB, free: 22.45 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.91e-07/2.783, allocations: 0 / 1.129 GB, free: 22.45 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001315/2.784, allocations: 255.6 kB / 1.129 GB, free: 22.2 MB / 427.1 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 () * 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.003184/2.787, allocations: 1.861 MB / 1.131 GB, free: 20.31 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0006825/2.788, allocations: 260.3 kB / 1.131 GB, free: 20.06 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/2.788, allocations: 8.125 kB / 1.131 GB, free: 20.05 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/2.788, allocations: 135.8 kB / 1.131 GB, free: 19.92 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000957/2.789, allocations: 68.91 kB / 1.131 GB, free: 19.85 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/2.791, allocations: 0.7521 MB / 1.132 GB, free: 19.05 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/2.791, allocations: 0.7402 MB / 1.133 GB, free: 18.28 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/2.792, allocations: 63.41 kB / 1.133 GB, free: 18.22 MB / 427.1 MB Notification: Performance of SimCode: time 1.122e-06/2.792, allocations: 3.938 kB / 1.133 GB, free: 18.21 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.874/5.665, allocations: 9.964 MB / 1.142 GB, free: 8.254 MB / 427.1 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