Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.001296/0.001296, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001236/0.001236, allocations: 196.5 kB / 16.14 MB, free: 6.715 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.495/1.495, allocations: 205.1 MB / 222 MB, free: 4.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04463/0.04463, allocations: 9.087 MB / 278.4 MB, free: 12.41 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.001421/0.001422, allocations: 63.91 kB / 337.4 MB, free: 25.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0947/0.09613, allocations: 48.16 MB / 385.6 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3739/0.4701, allocations: 144.1 MB / 0.5173 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4114/0.8815, allocations: 99.23 MB / 0.6142 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006784/0.8823, allocations: 7.188 kB / 0.6143 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.8856, allocations: 1.17 MB / 0.6154 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.8897, allocations: 1.473 MB / 0.6168 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07899/0.9688, allocations: 25.1 MB / 0.6413 GB, free: 15.87 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.9711, allocations: 1.826 MB / 0.6431 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.9714, allocations: 97.83 kB / 0.6432 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01726/0.9886, allocations: 9.379 MB / 0.6524 GB, free: 12.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.9893, allocations: 383.6 kB / 0.6528 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.9893, allocations: 24.78 kB / 0.6528 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06867/1.058, allocations: 32.31 MB / 0.6843 GB, free: 5.762 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000291/1.058, allocations: 96.12 kB / 0.6844 GB, free: 5.695 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007858/1.059, allocations: 286.2 kB / 0.6847 GB, free: 5.48 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05851/1.118, allocations: 14.15 MB / 0.6985 GB, free: 9.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/1.118, allocations: 0 / 0.6985 GB, free: 9.078 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/1.118, allocations: 3.938 kB / 0.6985 GB, free: 9.074 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.255e-05/1.118, allocations: 0 / 0.6985 GB, free: 9.074 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.008721/1.126, allocations: 2.654 MB / 0.7011 GB, free: 6.375 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/1.127, allocations: 8.031 kB / 0.7011 GB, free: 6.367 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/1.127, allocations: 86.52 kB / 0.7012 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/1.127, allocations: 79.34 kB / 0.7013 GB, free: 6.195 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/1.128, allocations: 339.5 kB / 0.7016 GB, free: 5.828 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.691e-05/1.128, allocations: 36.66 kB / 0.7016 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/1.128, allocations: 28 kB / 0.7017 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/1.129, allocations: 0.5844 MB / 0.7022 GB, free: 5.168 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/1.129, allocations: 3.906 kB / 0.7022 GB, free: 5.164 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.571e-05/1.13, allocations: 16 kB / 0.7022 GB, free: 5.148 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/1.13, allocations: 18.05 kB / 0.7023 GB, free: 5.133 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/1.131, allocations: 0.5213 MB / 0.7028 GB, free: 4.617 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00313/1.134, allocations: 2.485 MB / 0.7052 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/1.135, allocations: 488.3 kB / 0.7057 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/1.136, allocations: 330.3 kB / 0.706 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.295/1.431, allocations: 113.4 MB / 0.8167 GB, free: 272.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/1.431, allocations: 37.19 kB / 0.8168 GB, free: 272.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.275e-06/1.431, allocations: 1.75 kB / 0.8168 GB, free: 272.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005511/1.436, allocations: 2.429 MB / 0.8192 GB, free: 271.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.926e-05/1.436, allocations: 56 kB / 0.8192 GB, free: 271.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/1.437, allocations: 259.9 kB / 0.8195 GB, free: 271.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/1.437, allocations: 34.83 kB / 0.8195 GB, free: 271.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/1.437, allocations: 190.5 kB / 0.8197 GB, free: 271.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.437, allocations: 269 kB / 0.8199 GB, free: 271.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/1.437, allocations: 101.9 kB / 0.82 GB, free: 271.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.147e-05/1.437, allocations: 351 kB / 0.8204 GB, free: 270.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/1.437, allocations: 281 kB / 0.8206 GB, free: 270.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/1.438, allocations: 399.9 kB / 0.821 GB, free: 270.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008986/1.439, allocations: 0.704 MB / 0.8217 GB, free: 270.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/1.439, allocations: 5.625 kB / 0.8217 GB, free: 270.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001297/1.44, allocations: 0.8228 MB / 0.8225 GB, free: 269.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/1.44, allocations: 6.188 kB / 0.8225 GB, free: 269.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/1.44, allocations: 3.969 kB / 0.8225 GB, free: 269.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002576/1.441, allocations: 77.91 kB / 0.8226 GB, free: 269.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004626/1.441, allocations: 109 kB / 0.8227 GB, free: 269.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04224/1.483, allocations: 13.29 MB / 0.8357 GB, free: 261.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004616/1.484, allocations: 48.75 kB / 0.8357 GB, free: 261.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/1.484, allocations: 24.81 kB / 0.8357 GB, free: 261.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002315/1.484, allocations: 189.3 kB / 0.8359 GB, free: 261.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.259e-05/1.484, allocations: 49.75 kB / 0.836 GB, free: 261.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/1.486, allocations: 1.711 MB / 0.8376 GB, free: 260 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/1.486, allocations: 21.75 kB / 0.8377 GB, free: 260 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/1.486, allocations: 5.125 kB / 0.8377 GB, free: 260 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001213/1.487, allocations: 1.264 MB / 0.8389 GB, free: 259 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/1.489, allocations: 1.746 MB / 0.8406 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/1.489, allocations: 2.75 kB / 0.8406 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/1.489, allocations: 91 kB / 0.8407 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002845/1.49, allocations: 116.2 kB / 0.8408 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/1.49, allocations: 6.25 kB / 0.8408 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009439/1.491, allocations: 1.988 MB / 0.8428 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.491, allocations: 3.938 kB / 0.8428 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/1.492, allocations: 1.421 MB / 0.8441 GB, free: 254.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.033e-05/1.492, allocations: 120.5 kB / 0.8443 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.345e-05/1.492, allocations: 12 kB / 0.8443 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/1.493, allocations: 43.75 kB / 0.8443 GB, free: 254.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.054e-05/1.493, allocations: 47.92 kB / 0.8444 GB, free: 254.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/1.493, allocations: 8 kB / 0.8444 GB, free: 254.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001491/1.493, allocations: 223.1 kB / 0.8446 GB, free: 254 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.01e-07/1.493, allocations: 0.7812 kB / 0.8446 GB, free: 254 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005746/1.499, allocations: 2.987 MB / 0.8475 GB, free: 251.4 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * 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: 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01488/1.514, allocations: 5.643 MB / 0.853 GB, free: 246.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001606/1.515, allocations: 1.04 MB / 0.854 GB, free: 245.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.515, allocations: 0 / 0.854 GB, free: 245.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006791/1.516, allocations: 0.559 MB / 0.8546 GB, free: 244.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/1.518, allocations: 386.5 kB / 0.8549 GB, free: 244.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/1.529, allocations: 6.452 MB / 0.8612 GB, free: 237.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/1.529, allocations: 0.8569 MB / 0.8621 GB, free: 237 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000394/1.529, allocations: 135.6 kB / 0.8622 GB, free: 236.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/1.529, allocations: 167.4 kB / 0.8624 GB, free: 236.7 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/1.529, allocations: 0 / 0.8624 GB, free: 236.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.197/6.727, allocations: 117.9 MB / 0.9775 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/6.727, allocations: 247.3 kB / 0.9777 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/13.31, allocations: 0 / 0.9777 GB, free: 118.5 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)