Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008699/0.0008699, allocations: 93.12 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 176.3 kB / 17.19 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002716, allocations: 8.875 kB / 300.8 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1032, allocations: 50.42 MB / 351.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.04253/0.1458, allocations: 39.1 MB / 390.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005359/0.1512, allocations: 4.106 MB / 394.4 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004369/0.1517, allocations: 3.938 kB / 394.4 MB, free: 488 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006478/0.1524, allocations: 199.1 kB / 394.6 MB, free: 288 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004986/0.1529, allocations: 247.3 kB / 394.9 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01266/0.1656, allocations: 5.037 MB / 399.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008877/0.1665, allocations: 0.5937 MB / 400.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.1667, allocations: 101.6 kB / 400.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007849/0.1745, allocations: 5.957 MB / 406.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.1749, allocations: 259.1 kB / 406.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.175, allocations: 27.94 kB / 406.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01427/0.1893, allocations: 8.4 MB / 415.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.1896, allocations: 183.5 kB / 415.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.1898, allocations: 125.5 kB / 415.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006885/0.1967, allocations: 3.43 MB / 419 MB, free: 7.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1967, allocations: 4 kB / 419 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1968, allocations: 0 / 419 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1968, allocations: 0 / 419 MB, free: 7.918 MB / 350.1 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.002796/0.1996, allocations: 1.217 MB / 420.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1996, allocations: 12.03 kB / 420.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.1997, allocations: 86.52 kB / 420.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002955/0.2, allocations: 55.44 kB / 420.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.2005, allocations: 358.1 kB / 420.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.2006, allocations: 33 kB / 420.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-05/0.2006, allocations: 40 kB / 420.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.2018, allocations: 0.5804 MB / 421.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2018, allocations: 3.953 kB / 421.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/0.2019, allocations: 16 kB / 421.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2019, allocations: 19.94 kB / 421.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.2031, allocations: 0.7495 MB / 422.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2062/0.4093, allocations: 12 MB / 434.1 MB, free: 57.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.4105, allocations: 0.5325 MB / 434.7 MB, free: 57.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0119/0.4225, allocations: 11.95 MB / 446.6 MB, free: 46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.4225, allocations: 38.34 kB / 446.6 MB, free: 45.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.877e-06/0.4225, allocations: 0.6094 kB / 446.6 MB, free: 45.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005758/0.4283, allocations: 2.127 MB / 448.8 MB, free: 45.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.4284, allocations: 65.53 kB / 448.8 MB, free: 45.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.4288, allocations: 322.4 kB / 449.1 MB, free: 45.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.4288, allocations: 36.3 kB / 449.2 MB, free: 45.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.4289, allocations: 201.1 kB / 449.4 MB, free: 45.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.429, allocations: 193.1 kB / 449.6 MB, free: 44.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.4291, allocations: 9.906 kB / 449.6 MB, free: 44.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.4292, allocations: 345.8 kB / 449.9 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.4295, allocations: 237.5 kB / 450.1 MB, free: 44.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005778/0.4301, allocations: 337 kB / 450.5 MB, free: 44.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005997/0.4307, allocations: 287.1 kB / 450.8 MB, free: 44.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4307, allocations: 0.9688 kB / 450.8 MB, free: 44.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001883/0.4326, allocations: 0.7435 MB / 451.5 MB, free: 44.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.4327, allocations: 10.94 kB / 451.5 MB, free: 44.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.4327, allocations: 2.25 kB / 451.5 MB, free: 44.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/0.4332, allocations: 110.2 kB / 451.6 MB, free: 44.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.4337, allocations: 120.4 kB / 451.7 MB, free: 44.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.4356, allocations: 3.297 MB / 455 MB, free: 41.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.4359, allocations: 37.7 kB / 455.1 MB, free: 41.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.436, allocations: 34.97 kB / 455.1 MB, free: 41.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002352/0.4362, allocations: 190.7 kB / 455.3 MB, free: 41.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.4365, allocations: 53.61 kB / 455.3 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.438, allocations: 0.8152 MB / 456.2 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.438, allocations: 7.906 kB / 456.2 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.438, allocations: 5.25 kB / 456.2 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009937/0.439, allocations: 0.756 MB / 456.9 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.4409, allocations: 1.309 MB / 458.2 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4409, allocations: 0.6562 kB / 458.2 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.4413, allocations: 96.62 kB / 458.3 MB, free: 40.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008593/0.4422, allocations: 151.3 kB / 458.5 MB, free: 40.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.4422, allocations: 17.77 kB / 458.5 MB, free: 40.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002528/0.4425, allocations: 0.6575 MB / 459.2 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4425, allocations: 1.031 kB / 459.2 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.444, allocations: 0.9193 MB / 460.1 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4442, allocations: 128.6 kB / 460.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.509e-05/0.4442, allocations: 17.73 kB / 460.2 MB, free: 39.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.4447, allocations: 31.33 kB / 460.3 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.4448, allocations: 39.7 kB / 460.3 MB, free: 39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.4448, allocations: 32.69 kB / 460.3 MB, free: 39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00028/0.4451, allocations: 254.1 kB / 460.6 MB, free: 38.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4451, allocations: 0 / 460.6 MB, free: 38.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003831/0.4489, allocations: 1.305 MB / 461.9 MB, free: 38.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005891/0.4548, allocations: 3.067 MB / 464.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.4561, allocations: 0.8121 MB / 465.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4561, allocations: 0 / 465.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.4566, allocations: 292.2 kB / 466 MB, free: 36.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.4578, allocations: 254.1 kB / 466.3 MB, free: 36.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005256/0.4631, allocations: 5.126 MB / 471.4 MB, free: 32.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.4633, allocations: 0.8446 MB / 472.3 MB, free: 31.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005002/0.4638, allocations: 137.6 kB / 472.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.464, allocations: 155.4 kB / 472.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.464, allocations: 0 / 472.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07864/0.5427, allocations: 49.58 MB / 0.5099 GB, free: 13.6 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/0.543, allocations: 254.5 kB / 0.5101 GB, free: 13.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.786/4.329, allocations: 4 kB / 0.5101 GB, free: 13.27 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat does not exist to compare? outputFormat=mat