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.00121/0.00121, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001221/0.001222, allocations: 190.7 kB / 16.25 MB, free: 6.621 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.163/1.163, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04253/0.04253, allocations: 9.083 MB / 278.5 MB, free: 12.33 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.001939/0.001939, allocations: 68.41 kB / 337.6 MB, free: 25.65 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07476/0.07672, allocations: 48.16 MB / 385.8 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.2535/0.3303, allocations: 128.3 MB / 0.5021 GB, free: 5.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2868/0.6172, allocations: 110.8 MB / 0.6103 GB, free: 272 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004643/0.6177, allocations: 10.16 kB / 0.6103 GB, free: 268 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.6202, allocations: 1.279 MB / 0.6115 GB, free: 260 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002675/0.6229, allocations: 1.556 MB / 0.6131 GB, free: 244 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05689/0.6798, allocations: 27.27 MB / 0.6397 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.6813, allocations: 1.414 MB / 0.6411 GB, free: 15.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.6815, allocations: 116.6 kB / 0.6412 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01631/0.6978, allocations: 12.02 MB / 0.6529 GB, free: 8.984 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.6983, allocations: 384.3 kB / 0.6533 GB, free: 8.684 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.6984, allocations: 40 kB / 0.6533 GB, free: 8.645 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05679/0.7552, allocations: 36.21 MB / 0.6887 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.7554, allocations: 122.5 kB / 0.6888 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000565/0.756, allocations: 301.4 kB / 0.6891 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03979/0.7958, allocations: 14.54 MB / 0.7033 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.7959, allocations: 0 / 0.7033 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.7959, allocations: 0 / 0.7033 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.7959, allocations: 0 / 0.7033 GB, free: 0.8359 MB / 494.1 MB 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.006123/0.802, allocations: 2.568 MB / 0.7058 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.8021, allocations: 12.03 kB / 0.7058 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.8022, allocations: 78.52 kB / 0.7059 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006799/0.8029, allocations: 91.39 kB / 0.706 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.8034, allocations: 339.6 kB / 0.7063 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.8034, allocations: 32.66 kB / 0.7063 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.8035, allocations: 28 kB / 0.7063 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.8048, allocations: 0.6002 MB / 0.7069 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.8048, allocations: 3.906 kB / 0.7069 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.8049, allocations: 16 kB / 0.707 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.8049, allocations: 14.5 kB / 0.707 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.8062, allocations: 0.552 MB / 0.7075 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.8089, allocations: 2.456 MB / 0.7099 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.81, allocations: 499.9 kB / 0.7104 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005148/0.8105, allocations: 341.9 kB / 0.7107 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3572/1.168, allocations: 139 MB / 0.8464 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/1.168, allocations: 44.88 kB / 0.8465 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 2.274e-06/1.168, allocations: 3.656 kB / 0.8465 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005249/1.173, allocations: 2.335 MB / 0.8487 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.768e-05/1.173, allocations: 55.31 kB / 0.8488 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/1.173, allocations: 261.7 kB / 0.849 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/1.173, allocations: 29.7 kB / 0.8491 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.259e-05/1.173, allocations: 189.9 kB / 0.8493 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/1.174, allocations: 269 kB / 0.8495 GB, free: 272.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/1.174, allocations: 99.92 kB / 0.8496 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.187e-05/1.174, allocations: 349.6 kB / 0.8499 GB, free: 271.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004077/1.174, allocations: 278.9 kB / 0.8502 GB, free: 271.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004434/1.175, allocations: 396.6 kB / 0.8506 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008629/1.175, allocations: 0.6849 MB / 0.8513 GB, free: 270.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/1.175, allocations: 3.438 kB / 0.8513 GB, free: 270.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001166/1.177, allocations: 0.8078 MB / 0.852 GB, free: 270.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/1.177, allocations: 7.938 kB / 0.8521 GB, free: 270.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/1.177, allocations: 0 / 0.8521 GB, free: 270.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/1.177, allocations: 63.8 kB / 0.8521 GB, free: 270.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006149/1.178, allocations: 142.2 kB / 0.8523 GB, free: 270.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1169/1.294, allocations: 28.74 MB / 0.8803 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005284/1.295, allocations: 47.81 kB / 0.8804 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/1.295, allocations: 19.98 kB / 0.8804 GB, free: 243.5 MB / 0.5919 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.000232/1.295, allocations: 188.2 kB / 0.8806 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.802e-05/1.295, allocations: 47.38 kB / 0.8806 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/1.297, allocations: 1.718 MB / 0.8823 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/1.297, allocations: 15.98 kB / 0.8823 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.297, allocations: 7.938 kB / 0.8823 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001266/1.298, allocations: 1.288 MB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/1.3, allocations: 1.752 MB / 0.8853 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/1.3, allocations: 0 / 0.8853 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/1.301, allocations: 75.89 kB / 0.8853 GB, free: 238.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003106/1.301, allocations: 175.5 kB / 0.8855 GB, free: 238 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/1.301, allocations: 4 kB / 0.8855 GB, free: 238 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/1.302, allocations: 2.583 MB / 0.888 GB, free: 235.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.302, allocations: 0 / 0.888 GB, free: 235.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/1.304, allocations: 1.377 MB / 0.8894 GB, free: 233.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/1.304, allocations: 120.5 kB / 0.8895 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/1.304, allocations: 13.02 kB / 0.8895 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/1.304, allocations: 32.03 kB / 0.8895 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/1.305, allocations: 43.94 kB / 0.8896 GB, free: 233.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/1.305, allocations: 19.98 kB / 0.8896 GB, free: 233.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001781/1.305, allocations: 219.1 kB / 0.8898 GB, free: 233.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/1.305, allocations: 0 / 0.8898 GB, free: 233.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007943/1.313, allocations: 3.189 MB / 0.8929 GB, free: 230.6 MB / 0.5919 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.01832/1.331, allocations: 6.021 MB / 0.8988 GB, free: 225.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002545/1.334, allocations: 1.049 MB / 0.8998 GB, free: 224 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.334, allocations: 0 / 0.8998 GB, free: 224 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007297/1.334, allocations: 0.5111 MB / 0.9003 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/1.336, allocations: 401.4 kB / 0.9007 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/1.349, allocations: 6.299 MB / 0.9069 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/1.349, allocations: 0.8565 MB / 0.9077 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004672/1.35, allocations: 127.3 kB / 0.9078 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/1.35, allocations: 171.4 kB / 0.908 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/1.35, allocations: 0 / 0.908 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.907/6.257, allocations: 125.2 MB / 1.03 GB, free: 90.02 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/6.257, allocations: 252.5 kB / 1.03 GB, free: 89.76 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.689/14.95, allocations: 0 / 1.03 GB, free: 89.76 MB / 0.5919 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)