Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.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.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",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.002277/0.002277, allocations: 181.3 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.136/2.136, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001161/0.001161, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.792e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.405/2.509, allocations: 0.7179 GB / 1.078 GB, free: 101.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/2.51, allocations: 79.34 kB / 1.078 GB, free: 101.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1137/2.623, allocations: 33.75 MB / 1.111 GB, free: 72.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.794e-06/2.623, allocations: 0 / 1.111 GB, free: 72.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.258e-05/2.623, allocations: 0 / 1.111 GB, free: 72.01 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005645/2.624, allocations: 411.5 kB / 1.112 GB, free: 71.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/2.624, allocations: 8.25 kB / 1.112 GB, free: 71.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.601e-05/2.624, allocations: 46.48 kB / 1.112 GB, free: 71.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002735/2.627, allocations: 199.5 kB / 1.112 GB, free: 71.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/2.627, allocations: 203 kB / 1.112 GB, free: 71.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/2.627, allocations: 8.188 kB / 1.112 GB, free: 71.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.21e-05/2.627, allocations: 7.906 kB / 1.112 GB, free: 71.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/2.628, allocations: 198.9 kB / 1.112 GB, free: 70.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/2.628, allocations: 0 / 1.112 GB, free: 70.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.483e-05/2.628, allocations: 4 kB / 1.112 GB, free: 70.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/2.628, allocations: 4 kB / 1.112 GB, free: 70.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005591/2.628, allocations: 192.5 kB / 1.113 GB, free: 70.65 MB / 426.7 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.001928/2.63, allocations: 0.6221 MB / 1.113 GB, free: 69.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/2.631, allocations: 154.5 kB / 1.113 GB, free: 69.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/2.631, allocations: 76.84 kB / 1.113 GB, free: 69.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/2.631, allocations: 89.09 kB / 1.114 GB, free: 69.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/2.631, allocations: 34.56 kB / 1.114 GB, free: 69.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/2.631, allocations: 4 kB / 1.114 GB, free: 69.59 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.007507/2.639, allocations: 1.207 MB / 1.115 GB, free: 68.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/2.639, allocations: 51.41 kB / 1.115 GB, free: 68.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.53e-05/2.639, allocations: 105 kB / 1.115 GB, free: 68.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/2.639, allocations: 29.7 kB / 1.115 GB, free: 68.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.273e-05/2.639, allocations: 170.7 kB / 1.115 GB, free: 67.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/2.639, allocations: 67 kB / 1.115 GB, free: 67.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/2.639, allocations: 8 kB / 1.115 GB, free: 67.83 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/2.639, allocations: 322.8 kB / 1.115 GB, free: 67.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/2.639, allocations: 68 kB / 1.116 GB, free: 67.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/2.64, allocations: 107.7 kB / 1.116 GB, free: 67.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/2.64, allocations: 95.73 kB / 1.116 GB, free: 67.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/2.64, allocations: 4 kB / 1.116 GB, free: 67.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006358/2.641, allocations: 246.3 kB / 1.116 GB, free: 66.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/2.641, allocations: 7.938 kB / 1.116 GB, free: 66.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/2.641, allocations: 4 kB / 1.116 GB, free: 66.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001547/2.641, allocations: 16.84 kB / 1.116 GB, free: 66.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006229/2.641, allocations: 55.91 kB / 1.116 GB, free: 66.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003248/2.642, allocations: 0.5369 MB / 1.117 GB, free: 66.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/2.642, allocations: 11.98 kB / 1.117 GB, free: 66.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/2.642, allocations: 11.94 kB / 1.117 GB, free: 66.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001061/2.642, allocations: 113 kB / 1.117 GB, free: 66.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-05/2.642, allocations: 11.89 kB / 1.117 GB, free: 66.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008225/2.643, allocations: 287.2 kB / 1.117 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/2.643, allocations: 0 / 1.117 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/2.643, allocations: 4 kB / 1.117 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/2.643, allocations: 3.984 kB / 1.117 GB, free: 65.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/2.645, allocations: 0.6472 MB / 1.118 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/2.645, allocations: 4.047 kB / 1.118 GB, free: 65.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006302/2.645, allocations: 47.97 kB / 1.118 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-05/2.645, allocations: 24.78 kB / 1.118 GB, free: 65.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.585e-05/2.645, allocations: 11.98 kB / 1.118 GB, free: 65.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000945/2.646, allocations: 1.257 MB / 1.119 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/2.646, allocations: 3.938 kB / 1.119 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009061/2.647, allocations: 444 kB / 1.119 GB, free: 63.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/2.647, allocations: 89.05 kB / 1.119 GB, free: 63.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.616e-05/2.647, allocations: 4 kB / 1.119 GB, free: 63.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/2.648, allocations: 11.98 kB / 1.119 GB, free: 63.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/2.648, allocations: 19.94 kB / 1.12 GB, free: 63.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.674e-05/2.648, allocations: 19.98 kB / 1.12 GB, free: 63.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.274e-05/2.648, allocations: 83.28 kB / 1.12 GB, free: 62.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.648, allocations: 0 / 1.12 GB, free: 62.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008739/2.649, allocations: 163.9 kB / 1.12 GB, free: 62.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002487/2.651, allocations: 1.716 MB / 1.121 GB, free: 61.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006437/2.652, allocations: 191.9 kB / 1.122 GB, free: 60.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/2.652, allocations: 0 / 1.122 GB, free: 60.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003903/2.652, allocations: 214.9 kB / 1.122 GB, free: 60.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/2.653, allocations: 43.91 kB / 1.122 GB, free: 60.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/2.654, allocations: 428.6 kB / 1.122 GB, free: 60.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/2.654, allocations: 0.7243 MB / 1.123 GB, free: 59.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/2.655, allocations: 35.42 kB / 1.123 GB, free: 59.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.063e-06/2.655, allocations: 0 / 1.123 GB, free: 59.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.85/5.505, allocations: 7.926 MB / 1.131 GB, free: 51.38 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat does not exist to compare? outputFormat=mat