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.MoistAir.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.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir",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.001772/0.001771, allocations: 188.9 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.091/2.091, 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.001162/0.001162, allocations: 94.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004009, allocations: 12 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1, allocations: 47.57 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir): time 0.6319/0.732, allocations: 148.7 MB / 0.5111 GB, free: 8.527 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.007288/0.7394, allocations: 3.276 MB / 0.5143 GB, free: 5.242 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004755/0.7399, allocations: 0 / 0.5143 GB, free: 5.242 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.7409, allocations: 195.2 kB / 0.5145 GB, free: 5.051 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.742, allocations: 251.3 kB / 0.5147 GB, free: 4.805 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006653/0.7487, allocations: 1.491 MB / 0.5162 GB, free: 3.312 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001454/0.7501, allocations: 0.6249 MB / 0.5168 GB, free: 2.688 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.7505, allocations: 101.5 kB / 0.5169 GB, free: 2.586 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003567/0.754, allocations: 0.9664 MB / 0.5178 GB, free: 1.617 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006559/0.7548, allocations: 291 kB / 0.5181 GB, free: 1.332 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.7549, allocations: 28 kB / 0.5181 GB, free: 1.305 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008421/0.7633, allocations: 3.008 MB / 0.521 GB, free: 14.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005051/0.7639, allocations: 183.6 kB / 0.5212 GB, free: 14.11 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.7642, allocations: 133.5 kB / 0.5214 GB, free: 13.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004679/0.7689, allocations: 1.518 MB / 0.5228 GB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.769, allocations: 0 / 0.5228 GB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.769, allocations: 0 / 0.5228 GB, free: 12.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.769, allocations: 4 kB / 0.5228 GB, free: 12.45 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003056/0.7721, allocations: 0.9318 MB / 0.5237 GB, free: 11.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.7721, allocations: 8.031 kB / 0.5238 GB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.7723, allocations: 82.53 kB / 0.5238 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004457/0.7728, allocations: 59.42 kB / 0.5239 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007806/0.7736, allocations: 365.9 kB / 0.5242 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/0.7736, allocations: 33 kB / 0.5243 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.7738, allocations: 44 kB / 0.5243 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.7754, allocations: 0.4945 MB / 0.5248 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.983e-05/0.7755, allocations: 0 / 0.5248 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.7756, allocations: 24 kB / 0.5248 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.7756, allocations: 8 kB / 0.5248 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/0.7773, allocations: 0.5973 MB / 0.5254 GB, free: 9.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005774/0.7831, allocations: 2.179 MB / 0.5275 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.7854, allocations: 0.5561 MB / 0.5281 GB, free: 6.746 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000888/0.7864, allocations: 0.6931 MB / 0.5288 GB, free: 5.906 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.601e-05/0.7865, allocations: 47 kB / 0.5288 GB, free: 5.852 MB / 410.7 MB Notification: Performance of pre-optimization done (n=53): time 3.878e-06/0.7865, allocations: 0 / 0.5288 GB, free: 5.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=65): time 0.02861/0.8151, allocations: 3.798 MB / 0.5325 GB, free: 1.953 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.8152, allocations: 63.97 kB / 0.5326 GB, free: 1.879 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005554/0.8158, allocations: 290.7 kB / 0.5329 GB, free: 1.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001797/0.816, allocations: 37.7 kB / 0.5329 GB, free: 1.547 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.8162, allocations: 251.5 kB / 0.5331 GB, free: 1.301 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/0.8165, allocations: 228.7 kB / 0.5333 GB, free: 1.074 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.8166, allocations: 12 kB / 0.5334 GB, free: 1.062 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.8168, allocations: 334.8 kB / 0.5337 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.8181, allocations: 317.1 kB / 0.534 GB, free: 428 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.8195, allocations: 388.2 kB / 0.5343 GB, free: 20 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2648/1.084, allocations: 357.2 kB / 0.5347 GB, free: 145.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.944e-06/1.084, allocations: 1.344 kB / 0.5347 GB, free: 145.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004243/1.089, allocations: 0.9497 MB / 0.5356 GB, free: 145.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/1.089, allocations: 6.188 kB / 0.5356 GB, free: 145.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/1.089, allocations: 5.172 kB / 0.5356 GB, free: 145.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/1.092, allocations: 351.9 kB / 0.536 GB, free: 145.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/1.093, allocations: 124.7 kB / 0.5361 GB, free: 145.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/1.098, allocations: 3.533 MB / 0.5395 GB, free: 142.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/1.099, allocations: 63.38 kB / 0.5396 GB, free: 142.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/1.1, allocations: 30.06 kB / 0.5396 GB, free: 142.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (68): * Single equations (assignments): 65 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004473/1.1, allocations: 195.6 kB / 0.5398 GB, free: 142.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/1.1, allocations: 40.09 kB / 0.5398 GB, free: 142.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/1.105, allocations: 1.037 MB / 0.5409 GB, free: 141.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/1.105, allocations: 7.531 kB / 0.5409 GB, free: 141.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.105, allocations: 1.656 kB / 0.5409 GB, free: 141.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004765/1.11, allocations: 1.085 MB / 0.5419 GB, free: 141.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00697/1.117, allocations: 1.716 MB / 0.5436 GB, free: 140.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.117, allocations: 5.688 kB / 0.5436 GB, free: 140.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.118, allocations: 111.8 kB / 0.5437 GB, free: 140.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003794/1.122, allocations: 397.5 kB / 0.5441 GB, free: 140.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001899/1.122, allocations: 19.88 kB / 0.5441 GB, free: 140.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/1.124, allocations: 0.878 MB / 0.545 GB, free: 139.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.125, allocations: 0 / 0.545 GB, free: 139.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005438/1.13, allocations: 1.372 MB / 0.5463 GB, free: 139.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/1.13, allocations: 124.7 kB / 0.5464 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/1.13, allocations: 20.8 kB / 0.5464 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/1.132, allocations: 66.91 kB / 0.5465 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/1.132, allocations: 44.5 kB / 0.5466 GB, free: 139 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/1.132, allocations: 30.78 kB / 0.5466 GB, free: 139 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004022/1.133, allocations: 225.2 kB / 0.5468 GB, free: 138.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.133, allocations: 0 / 0.5468 GB, free: 138.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002113/1.135, allocations: 445.8 kB / 0.5472 GB, free: 138.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (62): * Single equations (assignments): 61 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007551/1.142, allocations: 2.423 MB / 0.5496 GB, free: 137.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003698/1.146, allocations: 0.9968 MB / 0.5506 GB, free: 137.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.146, allocations: 1.531 kB / 0.5506 GB, free: 137.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/1.148, allocations: 426.2 kB / 0.551 GB, free: 136.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/1.151, allocations: 283.8 kB / 0.5512 GB, free: 136.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/1.164, allocations: 4.606 MB / 0.5557 GB, free: 134.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/1.165, allocations: 0.8631 MB / 0.5566 GB, free: 133.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005993/1.166, allocations: 175.7 kB / 0.5568 GB, free: 133.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/1.166, allocations: 0 / 0.5568 GB, free: 133.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.228/4.393, allocations: 19.33 MB / 0.5756 GB, free: 116.5 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Air_MoistAir.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Air.MoistAir.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.MoistAir_res.mat does not exist to compare? outputFormat=mat