Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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 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(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.005217/0.005221, allocations: 99.62 kB / 15.73 MB, free: 6.012 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.00127/0.00127, allocations: 187.7 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04651/0.04651, allocations: 9.095 MB / 279 MB, free: 12.07 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 63.89 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3333, allocations: 48.15 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1492/0.4826, allocations: 128.9 MB / 0.5509 GB, free: 15.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4238/0.9064, allocations: 111.1 MB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000722/0.9072, allocations: 9.531 kB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003497/0.9107, allocations: 1.368 MB / 0.6607 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.9152, allocations: 1.654 MB / 0.6623 GB, free: 236 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.08871/1.004, allocations: 30.14 MB / 0.6917 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00221/1.006, allocations: 1.402 MB / 0.6931 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/1.006, allocations: 124.8 kB / 0.6932 GB, free: 5.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02003/1.026, allocations: 11.69 MB / 0.7046 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005236/1.027, allocations: 379.6 kB / 0.705 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.695e-05/1.027, allocations: 44 kB / 0.705 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07346/1.101, allocations: 36.97 MB / 0.7411 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000333/1.101, allocations: 122.5 kB / 0.7413 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006618/1.102, allocations: 305.5 kB / 0.7415 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05726/1.159, allocations: 14.52 MB / 0.7557 GB, free: 11.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/1.159, allocations: 0 / 0.7557 GB, free: 11.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.404e-06/1.159, allocations: 0 / 0.7557 GB, free: 11.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.178e-05/1.159, allocations: 0 / 0.7557 GB, free: 11.52 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.008104/1.167, allocations: 2.565 MB / 0.7582 GB, free: 8.906 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.167, allocations: 12.03 kB / 0.7582 GB, free: 8.895 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/1.167, allocations: 82.52 kB / 0.7583 GB, free: 8.805 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006129/1.168, allocations: 87.39 kB / 0.7584 GB, free: 8.719 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/1.168, allocations: 338.3 kB / 0.7587 GB, free: 8.352 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/1.168, allocations: 32.66 kB / 0.7588 GB, free: 8.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/1.168, allocations: 39.94 kB / 0.7588 GB, free: 8.281 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/1.17, allocations: 0.5987 MB / 0.7594 GB, free: 7.668 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/1.17, allocations: 4 kB / 0.7594 GB, free: 7.664 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/1.17, allocations: 12 kB / 0.7594 GB, free: 7.652 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/1.17, allocations: 14.73 kB / 0.7594 GB, free: 7.641 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/1.171, allocations: 0.5477 MB / 0.7599 GB, free: 7.102 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/1.174, allocations: 2.473 MB / 0.7624 GB, free: 4.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/1.175, allocations: 486.3 kB / 0.7628 GB, free: 3.949 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/1.176, allocations: 346.4 kB / 0.7632 GB, free: 3.609 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4628/1.638, allocations: 139 MB / 0.8989 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/1.638, allocations: 38.97 kB / 0.8989 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.564e-06/1.638, allocations: 0.5 kB / 0.8989 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005596/1.644, allocations: 2.335 MB / 0.9012 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.339e-05/1.644, allocations: 61.38 kB / 0.9013 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/1.644, allocations: 262.5 kB / 0.9015 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/1.644, allocations: 33.7 kB / 0.9015 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/1.644, allocations: 192.6 kB / 0.9017 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/1.645, allocations: 265.3 kB / 0.902 GB, free: 211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/1.645, allocations: 102 kB / 0.9021 GB, free: 210.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.956e-05/1.645, allocations: 346.8 kB / 0.9024 GB, free: 210.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/1.645, allocations: 281.2 kB / 0.9027 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/1.646, allocations: 390.2 kB / 0.903 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008906/1.646, allocations: 0.6913 MB / 0.9037 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.646, allocations: 1.438 kB / 0.9037 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001187/1.648, allocations: 0.7943 MB / 0.9045 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/1.648, allocations: 9.094 kB / 0.9045 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/1.648, allocations: 4 kB / 0.9045 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/1.648, allocations: 73.2 kB / 0.9046 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006766/1.649, allocations: 139.1 kB / 0.9047 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06822/1.717, allocations: 22.95 MB / 0.9271 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004233/1.717, allocations: 27.97 kB / 0.9271 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/1.717, allocations: 19.94 kB / 0.9272 GB, free: 184.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000237/1.718, allocations: 196.1 kB / 0.9274 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.254e-05/1.718, allocations: 43.47 kB / 0.9274 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/1.719, allocations: 1.718 MB / 0.9291 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.719, allocations: 7.828 kB / 0.9291 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/1.719, allocations: 3.938 kB / 0.9291 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001191/1.721, allocations: 1.3 MB / 0.9304 GB, free: 181.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/1.722, allocations: 1.738 MB / 0.9321 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/1.722, allocations: 10.84 kB / 0.9321 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/1.723, allocations: 75.89 kB / 0.9321 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003059/1.723, allocations: 173.8 kB / 0.9323 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/1.723, allocations: 12 kB / 0.9323 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/1.724, allocations: 2.559 MB / 0.9348 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.724, allocations: 3.938 kB / 0.9348 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/1.726, allocations: 1.386 MB / 0.9362 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.912e-05/1.726, allocations: 120.5 kB / 0.9363 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/1.726, allocations: 12 kB / 0.9363 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/1.726, allocations: 23.97 kB / 0.9363 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.66e-05/1.727, allocations: 39.94 kB / 0.9364 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/1.727, allocations: 16.06 kB / 0.9364 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001755/1.727, allocations: 223.1 kB / 0.9366 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.727, allocations: 0 / 0.9366 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00842/1.735, allocations: 3.515 MB / 0.94 GB, free: 171.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02011/1.755, allocations: 6.441 MB / 0.9463 GB, free: 165.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002127/1.757, allocations: 1.057 MB / 0.9473 GB, free: 164.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.757, allocations: 4 kB / 0.9473 GB, free: 164.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006985/1.758, allocations: 0.5033 MB / 0.9478 GB, free: 163.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/1.76, allocations: 397.2 kB / 0.9482 GB, free: 163.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/1.774, allocations: 6.208 MB / 0.9543 GB, free: 157.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/1.774, allocations: 0.8526 MB / 0.9551 GB, free: 156.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003943/1.775, allocations: 137.2 kB / 0.9552 GB, free: 156.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/1.775, allocations: 163.4 kB / 0.9554 GB, free: 156 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/1.775, allocations: 0 / 0.9554 GB, free: 156 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1854/1.96, allocations: 133.6 MB / 1.086 GB, free: 22.14 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.36/22.32, allocations: 0 / 1.086 GB, free: 22.14 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)