Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",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.001195/0.001195, 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.001257/0.001257, allocations: 191.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.349/1.349, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04529/0.04529, allocations: 9.092 MB / 278.5 MB, free: 12.36 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.001447/0.001447, allocations: 67.91 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09383, allocations: 48.15 MB / 385.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.3179/0.4118, allocations: 128.2 MB / 0.5019 GB, free: 6.027 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.367/0.7788, allocations: 110.9 MB / 0.6103 GB, free: 248 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006678/0.7795, allocations: 6.812 kB / 0.6103 GB, free: 248 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.7829, allocations: 1.298 MB / 0.6115 GB, free: 240 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004342/0.7874, allocations: 1.561 MB / 0.6131 GB, free: 228 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08225/0.8697, allocations: 26.46 MB / 0.6389 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002095/0.8718, allocations: 1.421 MB / 0.6403 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.8721, allocations: 117.2 kB / 0.6404 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.8732, allocations: 0.6075 MB / 0.641 GB, free: 15.31 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.8737, allocations: 387.3 kB / 0.6414 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.8738, allocations: 48.66 kB / 0.6414 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06291/0.9367, allocations: 34.29 MB / 0.6749 GB, free: 12.45 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003131/0.937, allocations: 119 kB / 0.675 GB, free: 12.34 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006892/0.9377, allocations: 310.7 kB / 0.6753 GB, free: 12.04 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04829/0.986, allocations: 13.95 MB / 0.6889 GB, free: 15.17 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.9861, allocations: 4 kB / 0.6889 GB, free: 15.17 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.9861, allocations: 0 / 0.6889 GB, free: 15.17 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.9861, allocations: 0 / 0.6889 GB, free: 15.17 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.009567/0.9957, allocations: 2.579 MB / 0.6915 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.9958, allocations: 8.031 kB / 0.6915 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.297e-05/0.9959, allocations: 82.52 kB / 0.6915 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006503/0.9965, allocations: 91.39 kB / 0.6916 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.9969, allocations: 335.3 kB / 0.692 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.997, allocations: 32.66 kB / 0.692 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.311e-05/0.997, allocations: 32 kB / 0.692 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.9983, allocations: 0.6012 MB / 0.6926 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.9983, allocations: 0 / 0.6926 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.9984, allocations: 16 kB / 0.6926 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.9984, allocations: 13.97 kB / 0.6926 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.9996, allocations: 0.5559 MB / 0.6932 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/1.002, allocations: 2.548 MB / 0.6957 GB, free: 7.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/1.003, allocations: 0.5007 MB / 0.6962 GB, free: 7.473 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/1.004, allocations: 334.3 kB / 0.6965 GB, free: 7.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.537/1.541, allocations: 139 MB / 0.8322 GB, free: 135.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/1.541, allocations: 41.27 kB / 0.8322 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.456e-06/1.541, allocations: 0 / 0.8322 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005578/1.546, allocations: 2.34 MB / 0.8345 GB, free: 135.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/1.546, allocations: 54.28 kB / 0.8346 GB, free: 135.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/1.547, allocations: 253.2 kB / 0.8348 GB, free: 135.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/1.547, allocations: 33.58 kB / 0.8348 GB, free: 135.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/1.547, allocations: 184 kB / 0.835 GB, free: 135.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/1.547, allocations: 265.2 kB / 0.8353 GB, free: 134.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/1.547, allocations: 97.22 kB / 0.8353 GB, free: 134.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.021e-05/1.547, allocations: 359.5 kB / 0.8357 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004363/1.548, allocations: 267.9 kB / 0.8359 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004818/1.548, allocations: 393.9 kB / 0.8363 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009677/1.549, allocations: 0.7099 MB / 0.837 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.549, allocations: 2.156 kB / 0.837 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00131/1.55, allocations: 0.7868 MB / 0.8378 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/1.55, allocations: 8.531 kB / 0.8378 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.55, allocations: 8.359 kB / 0.8378 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002409/1.551, allocations: 63.53 kB / 0.8379 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/1.551, allocations: 100.5 kB / 0.838 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09193/1.643, allocations: 22.36 MB / 0.8598 GB, free: 125.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/1.644, allocations: 55.92 kB / 0.8599 GB, free: 125.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.727e-05/1.644, allocations: 16.34 kB / 0.8599 GB, free: 125.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003472/1.644, allocations: 198.1 kB / 0.8601 GB, free: 125 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/1.644, allocations: 41.72 kB / 0.8601 GB, free: 125 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/1.646, allocations: 1.545 MB / 0.8616 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/1.646, allocations: 13.06 kB / 0.8616 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.646, allocations: 0 / 0.8616 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001242/1.648, allocations: 1.143 MB / 0.8627 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/1.65, allocations: 1.591 MB / 0.8643 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.65, allocations: 0 / 0.8643 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/1.65, allocations: 88 kB / 0.8644 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/1.65, allocations: 43.12 kB / 0.8644 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/1.65, allocations: 8.969 kB / 0.8644 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008176/1.651, allocations: 1.42 MB / 0.8658 GB, free: 122.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.651, allocations: 4.156 kB / 0.8658 GB, free: 122.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/1.653, allocations: 1.182 MB / 0.867 GB, free: 122.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/1.653, allocations: 115.1 kB / 0.8671 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.057e-05/1.653, allocations: 7.375 kB / 0.8671 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/1.654, allocations: 47.55 kB / 0.8671 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/1.654, allocations: 41.28 kB / 0.8672 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/1.654, allocations: 16.31 kB / 0.8672 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002228/1.654, allocations: 240.4 kB / 0.8674 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.654, allocations: 0 / 0.8674 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008892/1.663, allocations: 3.188 MB / 0.8705 GB, free: 122 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01966/1.683, allocations: 5.643 MB / 0.876 GB, free: 120.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002267/1.685, allocations: 0.9801 MB / 0.877 GB, free: 119.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.685, allocations: 4 kB / 0.877 GB, free: 119.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008905/1.686, allocations: 490.8 kB / 0.8775 GB, free: 119.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/1.688, allocations: 405.3 kB / 0.8779 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/1.703, allocations: 6.344 MB / 0.884 GB, free: 114 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/1.703, allocations: 0.8542 MB / 0.8849 GB, free: 113.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0006776/1.704, allocations: 160.5 kB / 0.885 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/1.704, allocations: 173.9 kB / 0.8852 GB, free: 113 MB / 0.5919 GB Notification: Performance of SimCode: time 2.554e-06/1.705, allocations: 0 / 0.8852 GB, free: 113 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3482/2.053, allocations: 124.2 MB / 1.006 GB, free: 305.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/2.053, allocations: 243 kB / 1.007 GB, free: 305.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.92/7.972, allocations: 0 / 1.007 GB, free: 305.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)