Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",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.001046/0.001046, allocations: 87.2 kB / 16.31 MB, free: 6.457 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.001273/0.001273, allocations: 180.2 kB / 17.21 MB, free: 6.328 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.324/1.324, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.00024, allocations: 9.094 kB / 300.9 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.0936, allocations: 50.41 MB / 351.3 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2535/0.3472, allocations: 60.54 MB / 411.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006822/0.3541, allocations: 5.101 MB / 417 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007297/0.3548, allocations: 4.625 kB / 417 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009286/0.3558, allocations: 238.8 kB / 417.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.3568, allocations: 499.3 kB / 417.7 MB, free: 180 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01601/0.3729, allocations: 5.455 MB / 423.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.3753, allocations: 1.907 MB / 425.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.3756, allocations: 155.9 kB / 425.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009903/0.3766, allocations: 0.5255 MB / 425.7 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007851/0.3774, allocations: 0.5567 MB / 426.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.785e-05/0.3775, allocations: 36 kB / 426.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01644/0.394, allocations: 8.598 MB / 434.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000491/0.3945, allocations: 283.2 kB / 435.2 MB, free: 336 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003393/0.3949, allocations: 165.5 kB / 435.4 MB, free: 164 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007786/0.4027, allocations: 3.85 MB / 439.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4027, allocations: 0 / 439.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4027, allocations: 4 kB / 439.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.4027, allocations: 0 / 439.2 MB, free: 12.3 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003451/0.4062, allocations: 1.413 MB / 440.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.4063, allocations: 8.031 kB / 440.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.4064, allocations: 106.5 kB / 440.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/0.4068, allocations: 79.23 kB / 440.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005709/0.4074, allocations: 437 kB / 441.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.4074, allocations: 49.31 kB / 441.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-05/0.4075, allocations: 60 kB / 441.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.4092, allocations: 0.8077 MB / 442.2 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.4092, allocations: 3.906 kB / 442.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.4093, allocations: 31.94 kB / 442.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.4093, allocations: 12 kB / 442.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.4111, allocations: 1.024 MB / 443.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.4271, allocations: 12.83 MB / 456.1 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.4288, allocations: 0.7519 MB / 456.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005693/0.4294, allocations: 406.6 kB / 457.2 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.443, allocations: 12.3 MB / 469.5 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/0.4431, allocations: 53.67 kB / 469.6 MB, free: 9.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.986e-06/0.4431, allocations: 0 / 469.6 MB, free: 9.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.009079/0.4522, allocations: 3.409 MB / 473 MB, free: 5.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.4523, allocations: 60.41 kB / 473 MB, free: 5.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003971/0.4527, allocations: 360.5 kB / 473.4 MB, free: 5.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.739e-05/0.4528, allocations: 41.7 kB / 473.4 MB, free: 5.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.453, allocations: 244.6 kB / 473.7 MB, free: 5.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.4532, allocations: 303.6 kB / 473.9 MB, free: 4.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.4533, allocations: 20 kB / 474 MB, free: 4.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4534, allocations: 362.8 kB / 474.3 MB, free: 4.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.454, allocations: 369.8 kB / 474.7 MB, free: 4.047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000847/0.4548, allocations: 492.2 kB / 475.2 MB, free: 3.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008582/0.4557, allocations: 430.9 kB / 475.6 MB, free: 3.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4557, allocations: 0 / 475.6 MB, free: 3.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002469/0.4582, allocations: 1.117 MB / 476.7 MB, free: 1.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.4582, allocations: 8 kB / 476.7 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4582, allocations: 0 / 476.7 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007713/0.459, allocations: 171.5 kB / 476.9 MB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000718/0.4597, allocations: 187.8 kB / 477.1 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002646/0.4624, allocations: 3.919 MB / 481 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/0.463, allocations: 71.97 kB / 481 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/0.4631, allocations: 43.98 kB / 481.1 MB, free: 13.26 MB / 398.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,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.000381/0.4635, allocations: 232.3 kB / 481.3 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003376/0.4638, allocations: 59.44 kB / 481.4 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002389/0.4662, allocations: 1.284 MB / 482.7 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.4663, allocations: 11.94 kB / 482.7 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.4663, allocations: 0 / 482.7 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001799/0.4681, allocations: 1.32 MB / 484 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.4712, allocations: 1.967 MB / 486 MB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.4712, allocations: 0 / 486 MB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006728/0.4719, allocations: 167.8 kB / 486.1 MB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001704/0.4736, allocations: 301.1 kB / 486.4 MB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/0.4737, allocations: 27.98 kB / 486.4 MB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007247/0.4744, allocations: 1.289 MB / 487.7 MB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.4744, allocations: 7.891 kB / 487.7 MB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.4769, allocations: 1.405 MB / 489.1 MB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.4771, allocations: 136.7 kB / 489.3 MB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.4772, allocations: 24 kB / 489.3 MB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005428/0.4778, allocations: 63.92 kB / 489.4 MB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.4779, allocations: 52.88 kB / 489.4 MB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.478, allocations: 47.91 kB / 489.5 MB, free: 4.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00031/0.4783, allocations: 279 kB / 489.7 MB, free: 4.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4783, allocations: 3.938 kB / 489.7 MB, free: 4.277 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003925/0.4822, allocations: 1.394 MB / 491.1 MB, free: 2.883 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008268/0.4905, allocations: 3.438 MB / 494.6 MB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.4927, allocations: 1.141 MB / 495.7 MB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.4927, allocations: 4.062 kB / 495.7 MB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008556/0.4936, allocations: 491.2 kB / 496.2 MB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.4954, allocations: 381.1 kB / 496.6 MB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008744/0.5042, allocations: 4.965 MB / 0.4898 GB, free: 8.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.5047, allocations: 0.9166 MB / 0.4907 GB, free: 7.383 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008324/0.5055, allocations: 201.1 kB / 0.4909 GB, free: 7.184 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.5059, allocations: 227.4 kB / 0.4911 GB, free: 6.961 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5059, allocations: 0 / 0.4911 GB, free: 6.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2579/0.7638, allocations: 55.4 MB / 0.5452 GB, free: 153.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.764, allocations: 246.6 kB / 0.5454 GB, free: 153.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.979/4.743, allocations: 0 / 0.5454 GB, free: 153.1 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat does not exist to compare? outputFormat=mat