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.002054/0.002053, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.965/1.965, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001173/0.001173, allocations: 88.38 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005621/0.0005622, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3361, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.62/10.95, allocations: 3.56 GB / 3.926 GB, free: 61.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/10.95, allocations: 102.2 kB / 3.926 GB, free: 61.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.849/12.8, allocations: 317.6 MB / 4.236 GB, free: 66.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/12.8, allocations: 0 / 4.236 GB, free: 66.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.12e-05/12.8, allocations: 9.562 kB / 4.236 GB, free: 66.11 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00609/12.81, allocations: 1.593 MB / 4.238 GB, free: 65.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/12.81, allocations: 8.969 kB / 4.238 GB, free: 65.09 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002429/12.81, allocations: 86.06 kB / 4.238 GB, free: 65.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004454/12.81, allocations: 60.11 kB / 4.238 GB, free: 65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/12.81, allocations: 359.4 kB / 4.238 GB, free: 64.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/12.81, allocations: 34.06 kB / 4.238 GB, free: 64.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/12.81, allocations: 45.5 kB / 4.238 GB, free: 64.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/12.81, allocations: 499.6 kB / 4.239 GB, free: 64.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/12.81, allocations: 7.828 kB / 4.239 GB, free: 64.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-05/12.81, allocations: 19.94 kB / 4.239 GB, free: 64.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/12.81, allocations: 7.875 kB / 4.239 GB, free: 64.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/12.81, allocations: 0.6011 MB / 4.239 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/12.82, allocations: 2.173 MB / 4.241 GB, free: 62.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/12.82, allocations: 0.5495 MB / 4.242 GB, free: 62.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006764/12.82, allocations: 0.697 MB / 4.243 GB, free: 61.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/12.82, allocations: 51.5 kB / 4.243 GB, free: 61.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=53): time 2.986e-06/12.82, allocations: 3.828 kB / 4.243 GB, free: 61.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=65): time 0.02853/12.85, allocations: 4.112 MB / 4.247 GB, free: 60.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/12.85, allocations: 62.89 kB / 4.247 GB, free: 60.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004546/12.85, allocations: 270.9 kB / 4.247 GB, free: 60.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/12.85, allocations: 37.48 kB / 4.247 GB, free: 60.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/12.85, allocations: 240.5 kB / 4.247 GB, free: 59.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/12.85, allocations: 230.9 kB / 4.248 GB, free: 59.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.499e-05/12.85, allocations: 8 kB / 4.248 GB, free: 59.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/12.85, allocations: 340.5 kB / 4.248 GB, free: 59.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/12.85, allocations: 314.5 kB / 4.248 GB, free: 59.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/12.85, allocations: 384 kB / 4.249 GB, free: 59.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/12.86, allocations: 358.7 kB / 4.249 GB, free: 58.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/12.86, allocations: 0 / 4.249 GB, free: 58.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003969/12.86, allocations: 0.9893 MB / 4.25 GB, free: 57.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/12.86, allocations: 4 kB / 4.25 GB, free: 57.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/12.86, allocations: 7.953 kB / 4.25 GB, free: 57.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002897/12.86, allocations: 357.4 kB / 4.25 GB, free: 57.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/12.86, allocations: 121.8 kB / 4.25 GB, free: 57.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004637/12.87, allocations: 3.541 MB / 4.254 GB, free: 53.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/12.87, allocations: 59.72 kB / 4.254 GB, free: 53.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/12.87, allocations: 27.56 kB / 4.254 GB, free: 53.75 MB / 426.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.0005397/12.87, allocations: 198.9 kB / 4.254 GB, free: 53.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/12.87, allocations: 39.53 kB / 4.254 GB, free: 53.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008026/12.88, allocations: 1.388 MB / 4.255 GB, free: 52.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.403e-05/12.88, allocations: 8 kB / 4.255 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/12.88, allocations: 0 / 4.255 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007434/12.89, allocations: 1.426 MB / 4.257 GB, free: 51.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005176/12.89, allocations: 1.732 MB / 4.259 GB, free: 49.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/12.89, allocations: 0 / 4.259 GB, free: 49.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/12.89, allocations: 117.1 kB / 4.259 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003407/12.9, allocations: 399.1 kB / 4.259 GB, free: 49.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002045/12.9, allocations: 23.08 kB / 4.259 GB, free: 49.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002249/12.9, allocations: 0.8809 MB / 4.26 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/12.9, allocations: 0 / 4.26 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008549/12.91, allocations: 1.705 MB / 4.262 GB, free: 46.81 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/12.91, allocations: 116.7 kB / 4.262 GB, free: 46.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/12.91, allocations: 20 kB / 4.262 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/12.91, allocations: 59.86 kB / 4.262 GB, free: 46.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/12.91, allocations: 44.5 kB / 4.262 GB, free: 46.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/12.91, allocations: 27.97 kB / 4.262 GB, free: 46.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003436/12.91, allocations: 233.9 kB / 4.262 GB, free: 46.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.694e-06/12.91, allocations: 0 / 4.262 GB, free: 46.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002376/12.91, allocations: 0.5345 MB / 4.263 GB, free: 45.77 MB / 426.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.0115/12.92, allocations: 3.399 MB / 4.266 GB, free: 42.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003154/12.93, allocations: 0.9997 MB / 4.267 GB, free: 41.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/12.93, allocations: 0 / 4.267 GB, free: 41.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/12.93, allocations: 423.2 kB / 4.267 GB, free: 41.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/12.93, allocations: 287.3 kB / 4.268 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/12.94, allocations: 4.678 MB / 4.272 GB, free: 36.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/12.94, allocations: 0.8649 MB / 4.273 GB, free: 35.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004945/12.94, allocations: 171.4 kB / 4.273 GB, free: 34.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/12.94, allocations: 0 / 4.273 GB, free: 34.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.256/16.2, allocations: 22.59 MB / 4.295 GB, free: 12.48 MB / 426.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