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.000923/0.0009228, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.004842/0.004842, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.231/1.231, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04289/0.04289, allocations: 9.069 MB / 279.8 MB, free: 12.15 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.0004572/0.0004571, allocations: 19.98 kB / 339.8 MB, free: 25.53 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07064/0.0711, allocations: 49.18 MB / 389 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.2548/0.3259, allocations: 128.8 MB / 0.5057 GB, free: 6.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2839/0.6098, allocations: 111.7 MB / 0.6147 GB, free: 1.77 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005107/0.6104, allocations: 10.22 kB / 0.6147 GB, free: 1.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.6129, allocations: 1.192 MB / 0.6159 GB, free: 1.762 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.6157, allocations: 1.476 MB / 0.6173 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05344/0.6691, allocations: 24.92 MB / 0.6417 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001645/0.6708, allocations: 1.846 MB / 0.6435 GB, free: 36 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.671, allocations: 95.5 kB / 0.6436 GB, free: 8 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.6721, allocations: 0.5319 MB / 0.6441 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.6725, allocations: 381.6 kB / 0.6444 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.934e-05/0.6725, allocations: 22.8 kB / 0.6445 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04639/0.7189, allocations: 31.15 MB / 0.6749 GB, free: 2.828 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.7192, allocations: 98.52 kB / 0.675 GB, free: 2.773 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004368/0.7196, allocations: 309.4 kB / 0.6753 GB, free: 2.598 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03327/0.7529, allocations: 13.46 MB / 0.6884 GB, free: 8.344 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.7529, allocations: 0 / 0.6884 GB, free: 8.344 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.7529, allocations: 0 / 0.6884 GB, free: 8.344 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.7529, allocations: 0 / 0.6884 GB, free: 8.344 MB / 478.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.005392/0.7583, allocations: 2.485 MB / 0.6908 GB, free: 5.91 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.7584, allocations: 13.67 kB / 0.6909 GB, free: 5.898 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.37e-05/0.7585, allocations: 77.39 kB / 0.6909 GB, free: 5.836 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005459/0.759, allocations: 93.3 kB / 0.691 GB, free: 5.746 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.7594, allocations: 336.1 kB / 0.6913 GB, free: 5.426 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.7594, allocations: 33.84 kB / 0.6914 GB, free: 5.406 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.7595, allocations: 34.81 kB / 0.6914 GB, free: 5.383 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.7607, allocations: 0.6113 MB / 0.692 GB, free: 4.941 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.7607, allocations: 3.938 kB / 0.692 GB, free: 4.938 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.7607, allocations: 14.44 kB / 0.692 GB, free: 4.934 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.7608, allocations: 18.64 kB / 0.692 GB, free: 4.922 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.762, allocations: 0.5743 MB / 0.6926 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.7642, allocations: 2.55 MB / 0.6951 GB, free: 2.137 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.7653, allocations: 0.5285 MB / 0.6956 GB, free: 1.789 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005014/0.7658, allocations: 345.4 kB / 0.6959 GB, free: 1.586 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4117/1.177, allocations: 135.8 MB / 0.8286 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/1.178, allocations: 40.64 kB / 0.8286 GB, free: 131.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.465e-06/1.178, allocations: 2.812 kB / 0.8286 GB, free: 131.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005304/1.183, allocations: 2.405 MB / 0.8309 GB, free: 131.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.101e-05/1.183, allocations: 57.81 kB / 0.831 GB, free: 131.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/1.183, allocations: 252.9 kB / 0.8312 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/1.183, allocations: 33.17 kB / 0.8313 GB, free: 131.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.449e-05/1.183, allocations: 188.6 kB / 0.8315 GB, free: 131 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/1.183, allocations: 268.1 kB / 0.8317 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/1.183, allocations: 64.02 kB / 0.8318 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.703e-05/1.183, allocations: 354.8 kB / 0.8321 GB, free: 130.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/1.184, allocations: 280.2 kB / 0.8324 GB, free: 130.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/1.184, allocations: 404.8 kB / 0.8328 GB, free: 130.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009555/1.185, allocations: 0.7272 MB / 0.8335 GB, free: 130.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/1.185, allocations: 0 / 0.8335 GB, free: 130.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001283/1.187, allocations: 0.8158 MB / 0.8343 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/1.187, allocations: 9.094 kB / 0.8343 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/1.187, allocations: 3.719 kB / 0.8343 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002285/1.187, allocations: 66.88 kB / 0.8343 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/1.187, allocations: 104.8 kB / 0.8344 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09043/1.278, allocations: 22.03 MB / 0.856 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/1.278, allocations: 62 kB / 0.856 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/1.278, allocations: 13.97 kB / 0.856 GB, free: 121.4 MB / 0.5762 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.0002401/1.279, allocations: 187.2 kB / 0.8562 GB, free: 121.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/1.279, allocations: 44.78 kB / 0.8563 GB, free: 121.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/1.28, allocations: 1.568 MB / 0.8578 GB, free: 121 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/1.28, allocations: 12.06 kB / 0.8578 GB, free: 121 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/1.281, allocations: 4 kB / 0.8578 GB, free: 121 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001232/1.282, allocations: 1.171 MB / 0.8589 GB, free: 120.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/1.284, allocations: 1.613 MB / 0.8605 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.284, allocations: 0 / 0.8605 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/1.284, allocations: 96.92 kB / 0.8606 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002302/1.284, allocations: 53.77 kB / 0.8607 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/1.284, allocations: 11.25 kB / 0.8607 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006972/1.285, allocations: 1.324 MB / 0.862 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.285, allocations: 160 / 0.862 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/1.287, allocations: 1.222 MB / 0.8632 GB, free: 118.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/1.287, allocations: 143.7 kB / 0.8633 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.592e-05/1.287, allocations: 9.75 kB / 0.8633 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/1.287, allocations: 50.52 kB / 0.8634 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.777e-05/1.287, allocations: 44.92 kB / 0.8634 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/1.287, allocations: 14.22 kB / 0.8634 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002088/1.288, allocations: 244.3 kB / 0.8636 GB, free: 118.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.288, allocations: 0 / 0.8636 GB, free: 118.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006651/1.294, allocations: 3.185 MB / 0.8668 GB, free: 118.3 MB / 0.5762 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.01474/1.309, allocations: 5.676 MB / 0.8723 GB, free: 115.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001465/1.311, allocations: 0.9617 MB / 0.8732 GB, free: 115.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.311, allocations: 0 / 0.8732 GB, free: 115.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006469/1.311, allocations: 0.4907 MB / 0.8737 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002005/1.313, allocations: 392.2 kB / 0.8741 GB, free: 114.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/1.324, allocations: 6.478 MB / 0.8804 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/1.324, allocations: 0.8472 MB / 0.8812 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004366/1.324, allocations: 164.7 kB / 0.8814 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/1.324, allocations: 171.1 kB / 0.8816 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/1.324, allocations: 0 / 0.8816 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2996/1.624, allocations: 123.5 MB / 1.002 GB, free: 211.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/1.624, allocations: 240 kB / 1.002 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.531/7.156, allocations: 0 / 1.002 GB, free: 211.7 MB / 0.5762 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)