Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.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.Tests.MediaTestModels.Air.SimpleAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_SimpleAir",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.001678/0.001682, allocations: 186.2 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.025/2.025, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001166/0.001166, allocations: 90.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003795/0.0003797, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09539, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir): time 0.4622/0.5576, allocations: 121.9 MB / 496.5 MB, free: 3.035 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003596/0.5613, allocations: 1.516 MB / 498.1 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003805/0.5617, allocations: 0 / 498.1 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009162/0.5627, allocations: 143.4 kB / 498.2 MB, free: 1.371 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008571/0.5636, allocations: 219.4 kB / 498.4 MB, free: 1.156 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.5652, allocations: 333.5 kB / 498.7 MB, free: 0.832 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.5664, allocations: 474.9 kB / 499.2 MB, free: 376 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.5667, allocations: 76.66 kB / 499.3 MB, free: 300 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.5677, allocations: 299.1 kB / 499.6 MB, free: 0 / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006468/0.5684, allocations: 207.3 kB / 499.8 MB, free: 15.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.435e-05/0.5685, allocations: 16 kB / 499.8 MB, free: 15.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004757/0.569, allocations: 83.88 kB / 499.9 MB, free: 15.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.5692, allocations: 75.72 kB / 499.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.5693, allocations: 89.58 kB / 0.4883 GB, free: 15.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007089/0.5701, allocations: 373.5 kB / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.5701, allocations: 0 / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5701, allocations: 0 / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.5701, allocations: 0 / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001128/0.5712, allocations: 0.5348 MB / 0.4892 GB, free: 14.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.5713, allocations: 11.97 kB / 0.4892 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.5714, allocations: 62.53 kB / 0.4893 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003924/0.5719, allocations: 39.62 kB / 0.4893 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.5724, allocations: 282.5 kB / 0.4896 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.5725, allocations: 21.44 kB / 0.4896 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.496e-05/0.5725, allocations: 24 kB / 0.4896 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008206/0.5734, allocations: 297.4 kB / 0.4899 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.5734, allocations: 0 / 0.4899 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.514e-05/0.5735, allocations: 15.95 kB / 0.4899 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.5735, allocations: 4 kB / 0.4899 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005664/0.5741, allocations: 206.1 kB / 0.4901 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002828/0.5769, allocations: 1.289 MB / 0.4914 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/0.5776, allocations: 183.2 kB / 0.4915 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002399/0.5779, allocations: 170.4 kB / 0.4917 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.5779, allocations: 36.05 kB / 0.4917 GB, free: 11.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.736e-06/0.5779, allocations: 4 kB / 0.4917 GB, free: 11.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.00414/0.5821, allocations: 1.036 MB / 0.4928 GB, free: 10.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.5822, allocations: 59.41 kB / 0.4928 GB, free: 10.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.5826, allocations: 258.5 kB / 0.4931 GB, free: 10.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.5827, allocations: 29.7 kB / 0.4931 GB, free: 10.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.5829, allocations: 242.5 kB / 0.4933 GB, free: 9.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.974e-05/0.583, allocations: 82.75 kB / 0.4934 GB, free: 9.906 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.583, allocations: 12 kB / 0.4934 GB, free: 9.895 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5832, allocations: 330.8 kB / 0.4937 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.5835, allocations: 79.75 kB / 0.4938 GB, free: 9.484 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.5838, allocations: 183.8 kB / 0.494 GB, free: 9.262 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.5841, allocations: 107.9 kB / 0.4941 GB, free: 9.156 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5842, allocations: 0 / 0.4941 GB, free: 9.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001057/0.5852, allocations: 432.4 kB / 0.4945 GB, free: 8.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.5853, allocations: 8 kB / 0.4945 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.5853, allocations: 4 kB / 0.4945 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.5855, allocations: 46.11 kB / 0.4945 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005971/0.5861, allocations: 75.89 kB / 0.4946 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.5889, allocations: 2.588 MB / 0.4971 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/0.5894, allocations: 16.09 kB / 0.4972 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.5895, allocations: 20 kB / 0.4972 GB, free: 5.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (40): * Single equations (assignments): 38 * 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: 2 * 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: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002738/0.5898, allocations: 161.6 kB / 0.4973 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-05/0.5899, allocations: 23.72 kB / 0.4974 GB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008926/0.5908, allocations: 366.9 kB / 0.4977 GB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.569e-06/0.5908, allocations: 4 kB / 0.4977 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5908, allocations: 3.938 kB / 0.4977 GB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008531/0.5917, allocations: 0.611 MB / 0.4983 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.5934, allocations: 0.7625 MB / 0.4991 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5934, allocations: 0 / 0.4991 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.594, allocations: 55.91 kB / 0.4991 GB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.5941, allocations: 20.84 kB / 0.4991 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.5942, allocations: 8 kB / 0.4991 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.5955, allocations: 1.284 MB / 0.5004 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5955, allocations: 256 / 0.5004 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.5967, allocations: 0.524 MB / 0.5009 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.5968, allocations: 108.8 kB / 0.501 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.5969, allocations: 4 kB / 0.501 GB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004755/0.5974, allocations: 12.06 kB / 0.501 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.5975, allocations: 23.91 kB / 0.501 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.5975, allocations: 23.92 kB / 0.5011 GB, free: 1.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002803/0.5978, allocations: 186 kB / 0.5012 GB, free: 1.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5978, allocations: 0 / 0.5012 GB, free: 1.086 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006865/0.5985, allocations: 111.9 kB / 0.5013 GB, free: 0.9766 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 24 * 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.00163/0.6002, allocations: 1.153 MB / 0.5025 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.6013, allocations: 445.2 kB / 0.5029 GB, free: 15.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.6013, allocations: 4 kB / 0.5029 GB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004235/0.6017, allocations: 214.6 kB / 0.5031 GB, free: 15.08 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.6033, allocations: 153.1 kB / 0.5033 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.6086, allocations: 3.887 MB / 0.5071 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000484/0.6091, allocations: 0.7723 MB / 0.5078 GB, free: 10.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.6094, allocations: 91.41 kB / 0.5079 GB, free: 10.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6094, allocations: 0 / 0.5079 GB, free: 10.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.065/3.674, allocations: 7.477 MB / 0.5152 GB, free: 2.539 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_SimpleAir.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat