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.003302/0.003302, allocations: 181.5 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.127/2.127, 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.001183/0.001182, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.267e-05/3.269e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.476/2.585, allocations: 0.7292 GB / 1.09 GB, free: 91.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/2.585, allocations: 75.95 kB / 1.09 GB, free: 91.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1413/2.727, allocations: 40.01 MB / 1.129 GB, free: 54.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.402e-06/2.727, allocations: 0 / 1.129 GB, free: 54.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/2.727, allocations: 4 kB / 1.129 GB, free: 54.59 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.001016/2.728, allocations: 0.5221 MB / 1.129 GB, free: 54.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/2.728, allocations: 12.03 kB / 1.129 GB, free: 54.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.658e-05/2.728, allocations: 50.55 kB / 1.129 GB, free: 53.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004945/2.733, allocations: 367.3 kB / 1.13 GB, free: 53.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/2.733, allocations: 254.8 kB / 1.13 GB, free: 53.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/2.733, allocations: 16.38 kB / 1.13 GB, free: 53.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/2.734, allocations: 23.84 kB / 1.13 GB, free: 53.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/2.735, allocations: 461.4 kB / 1.131 GB, free: 52.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/2.735, allocations: 3.953 kB / 1.131 GB, free: 52.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.483e-05/2.735, allocations: 12 kB / 1.131 GB, free: 52.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/2.735, allocations: 8 kB / 1.131 GB, free: 52.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/2.736, allocations: 479.8 kB / 1.131 GB, free: 52.31 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.003372/2.74, allocations: 0.9866 MB / 1.132 GB, free: 51.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/2.74, allocations: 269 kB / 1.132 GB, free: 50.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/2.741, allocations: 141.7 kB / 1.132 GB, free: 50.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001707/2.742, allocations: 0.6554 MB / 1.133 GB, free: 50.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/2.742, allocations: 38.55 kB / 1.133 GB, free: 50.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 3.957e-06/2.742, allocations: 4 kB / 1.133 GB, free: 50.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.000981/2.743, allocations: 278.9 kB / 1.133 GB, free: 49.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/2.744, allocations: 85.09 kB / 1.133 GB, free: 49.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.972e-05/2.744, allocations: 97.28 kB / 1.133 GB, free: 49.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/2.744, allocations: 33.7 kB / 1.134 GB, free: 49.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/2.744, allocations: 186.9 kB / 1.134 GB, free: 49.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/2.744, allocations: 106.4 kB / 1.134 GB, free: 49.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/2.744, allocations: 4 kB / 1.134 GB, free: 49.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.637e-05/2.744, allocations: 330.8 kB / 1.134 GB, free: 48.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/2.744, allocations: 108.6 kB / 1.134 GB, free: 48.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/2.745, allocations: 191.5 kB / 1.134 GB, free: 48.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/2.745, allocations: 125.3 kB / 1.135 GB, free: 48.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/2.745, allocations: 4 kB / 1.135 GB, free: 48.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009142/2.746, allocations: 349.2 kB / 1.135 GB, free: 48.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/2.746, allocations: 4 kB / 1.135 GB, free: 48.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/2.746, allocations: 4 kB / 1.135 GB, free: 48.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/2.746, allocations: 7.984 kB / 1.135 GB, free: 48.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/2.747, allocations: 75.89 kB / 1.135 GB, free: 47.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/2.747, allocations: 11.94 kB / 1.135 GB, free: 47.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/2.747, allocations: 32 kB / 1.135 GB, free: 47.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-05/2.747, allocations: 23.98 kB / 1.135 GB, free: 47.92 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 () * 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.0001648/2.748, allocations: 120.9 kB / 1.135 GB, free: 47.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/2.748, allocations: 15.81 kB / 1.135 GB, free: 47.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/2.749, allocations: 366.7 kB / 1.135 GB, free: 47.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/2.749, allocations: 4 kB / 1.136 GB, free: 47.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/2.749, allocations: 3.984 kB / 1.136 GB, free: 47.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/2.749, allocations: 4 kB / 1.136 GB, free: 47.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009116/2.75, allocations: 365 kB / 1.136 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/2.75, allocations: 4 kB / 1.136 GB, free: 46.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007058/2.751, allocations: 55.91 kB / 1.136 GB, free: 46.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.859e-06/2.751, allocations: 4 kB / 1.136 GB, free: 46.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/2.751, allocations: 11.98 kB / 1.136 GB, free: 46.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/2.751, allocations: 0 / 1.136 GB, free: 46.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/2.751, allocations: 4 kB / 1.136 GB, free: 46.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/2.752, allocations: 0.5393 MB / 1.136 GB, free: 46.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/2.752, allocations: 104.7 kB / 1.137 GB, free: 46.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.095e-05/2.752, allocations: 8.047 kB / 1.137 GB, free: 46.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/2.753, allocations: 12 kB / 1.137 GB, free: 46.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/2.753, allocations: 27.97 kB / 1.137 GB, free: 46.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/2.753, allocations: 15.98 kB / 1.137 GB, free: 46.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.869e-05/2.753, allocations: 91.25 kB / 1.137 GB, free: 46.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.2e-07/2.753, allocations: 4 kB / 1.137 GB, free: 46.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001385/2.754, allocations: 259.8 kB / 1.137 GB, free: 45.82 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 () * 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.003443/2.758, allocations: 1.819 MB / 1.139 GB, free: 43.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008845/2.759, allocations: 271.8 kB / 1.139 GB, free: 43.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/2.759, allocations: 4 kB / 1.139 GB, free: 43.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003173/2.759, allocations: 139.8 kB / 1.139 GB, free: 43.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009482/2.76, allocations: 73.41 kB / 1.139 GB, free: 43.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/2.762, allocations: 0.7804 MB / 1.14 GB, free: 42.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/2.762, allocations: 0.7402 MB / 1.141 GB, free: 41.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/2.763, allocations: 75.33 kB / 1.141 GB, free: 41.83 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/2.763, allocations: 0 / 1.141 GB, free: 41.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.856/5.618, allocations: 9.974 MB / 1.15 GB, free: 31.84 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