Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_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.001624/0.001624, allocations: 188.1 kB / 16.4 MB, free: 5.625 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.144/2.144, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001202/0.001202, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2976/0.2976, allocations: 43.56 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006888/0.0006887, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1611, allocations: 58.86 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.5858/0.747, allocations: 125.9 MB / 0.6018 GB, free: 12.8 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005093/0.7521, allocations: 2.504 MB / 0.6043 GB, free: 10.3 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.7523, allocations: 0 / 0.6043 GB, free: 10.3 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.7526, allocations: 47.77 kB / 0.6043 GB, free: 10.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002883/0.7555, allocations: 0.7088 MB / 0.605 GB, free: 9.539 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007627/0.7563, allocations: 161 kB / 0.6052 GB, free: 9.383 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004998/0.7569, allocations: 223.6 kB / 0.6054 GB, free: 9.164 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.53e-05/0.757, allocations: 9.125 kB / 0.6054 GB, free: 9.152 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.7574, allocations: 155.6 kB / 0.6055 GB, free: 9 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.7577, allocations: 79.73 kB / 0.6056 GB, free: 8.922 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.562e-05/0.7577, allocations: 8 kB / 0.6056 GB, free: 8.914 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004332/0.7621, allocations: 1.092 MB / 0.6067 GB, free: 7.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.7623, allocations: 75.77 kB / 0.6068 GB, free: 7.746 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.7624, allocations: 57.64 kB / 0.6068 GB, free: 7.684 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.7643, allocations: 0.5871 MB / 0.6074 GB, free: 7.102 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.7644, allocations: 0 / 0.6074 GB, free: 7.102 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.7644, allocations: 0 / 0.6074 GB, free: 7.102 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.7644, allocations: 0 / 0.6074 GB, free: 7.102 MB / 410.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.001096/0.7655, allocations: 0.492 MB / 0.6079 GB, free: 6.562 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.7656, allocations: 12.03 kB / 0.6079 GB, free: 6.551 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.12e-05/0.7657, allocations: 50.55 kB / 0.6079 GB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002061/0.7678, allocations: 207.5 kB / 0.6081 GB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.7682, allocations: 226.8 kB / 0.6083 GB, free: 6.027 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.7682, allocations: 24.31 kB / 0.6084 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.7683, allocations: 16 kB / 0.6084 GB, free: 5.988 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009171/0.7693, allocations: 381.4 kB / 0.6087 GB, free: 5.605 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.7693, allocations: 0 / 0.6087 GB, free: 5.605 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.7694, allocations: 8 kB / 0.6087 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.7694, allocations: 7.953 kB / 0.6088 GB, free: 5.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009581/0.7703, allocations: 407.8 kB / 0.6091 GB, free: 5.191 MB / 410.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.002632/0.773, allocations: 0.8006 MB / 0.6099 GB, free: 4.336 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/0.7736, allocations: 225 kB / 0.6101 GB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002015/0.7756, allocations: 0.6789 MB / 0.6108 GB, free: 3.309 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.7757, allocations: 42.48 kB / 0.6108 GB, free: 3.258 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.415e-06/0.7757, allocations: 0 / 0.6108 GB, free: 3.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.00196/0.7777, allocations: 366.4 kB / 0.6112 GB, free: 2.898 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.7778, allocations: 89.05 kB / 0.6113 GB, free: 2.793 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.7779, allocations: 109.8 kB / 0.6114 GB, free: 2.676 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.539e-05/0.778, allocations: 33.7 kB / 0.6114 GB, free: 2.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.7781, allocations: 178.9 kB / 0.6116 GB, free: 2.461 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.7782, allocations: 102.4 kB / 0.6117 GB, free: 2.359 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.7783, allocations: 4 kB / 0.6117 GB, free: 2.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.7784, allocations: 330.8 kB / 0.612 GB, free: 2.023 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.7788, allocations: 96.61 kB / 0.6121 GB, free: 1.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.7792, allocations: 183.5 kB / 0.6123 GB, free: 1.715 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.7796, allocations: 119.9 kB / 0.6124 GB, free: 1.598 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.7796, allocations: 0 / 0.6124 GB, free: 1.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001021/0.7806, allocations: 349.7 kB / 0.6127 GB, free: 1.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.7807, allocations: 10.59 kB / 0.6127 GB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.7807, allocations: 4 kB / 0.6127 GB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.7807, allocations: 4 kB / 0.6127 GB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.7814, allocations: 75.89 kB / 0.6128 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.7814, allocations: 7.938 kB / 0.6128 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.7818, allocations: 28.03 kB / 0.6128 GB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.7819, allocations: 15.98 kB / 0.6129 GB, free: 1.109 MB / 410.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.0002093/0.7821, allocations: 145.7 kB / 0.613 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.7822, allocations: 19.77 kB / 0.613 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.7834, allocations: 333.6 kB / 0.6133 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.7834, allocations: 4 kB / 0.6133 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.7834, allocations: 7.984 kB / 0.6133 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.7834, allocations: 0 / 0.6133 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009163/0.7843, allocations: 335 kB / 0.6137 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7844, allocations: 0 / 0.6137 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/0.785, allocations: 59.91 kB / 0.6137 GB, free: 164 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.7851, allocations: 0 / 0.6137 GB, free: 164 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.7851, allocations: 17.38 kB / 0.6137 GB, free: 148 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/0.7851, allocations: 4 kB / 0.6137 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.7852, allocations: 0 / 0.6137 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.7865, allocations: 0.5089 MB / 0.6142 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.529e-05/0.7866, allocations: 92.91 kB / 0.6143 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.7867, allocations: 15.98 kB / 0.6143 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.7873, allocations: 12 kB / 0.6143 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.7873, allocations: 15.97 kB / 0.6144 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.48e-05/0.7874, allocations: 19.98 kB / 0.6144 GB, free: 15.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.215e-05/0.7875, allocations: 91.27 kB / 0.6145 GB, free: 15.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.7875, allocations: 4 kB / 0.6145 GB, free: 15.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001075/0.7886, allocations: 223.7 kB / 0.6147 GB, free: 15.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.T) * 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.002903/0.7915, allocations: 1.373 MB / 0.616 GB, free: 13.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008736/0.7924, allocations: 263.7 kB / 0.6163 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.7924, allocations: 0 / 0.6163 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003548/0.7928, allocations: 123.7 kB / 0.6164 GB, free: 13.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008982/0.7937, allocations: 80.47 kB / 0.6165 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004445/0.7982, allocations: 3.301 MB / 0.6197 GB, free: 9.863 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.7986, allocations: 0.7365 MB / 0.6204 GB, free: 9.102 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.7989, allocations: 67.41 kB / 0.6205 GB, free: 9.035 MB / 426.7 MB Notification: Performance of SimCode: time 1.863e-06/0.7989, allocations: 0 / 0.6205 GB, free: 9.035 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.977/3.776, allocations: 7.069 MB / 0.6274 GB, free: 1.961 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat does not exist to compare? outputFormat=mat