Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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: translateModel(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, 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.001274/0.001274, allocations: 194.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.307/1.307, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04257/0.04257, allocations: 9.09 MB / 278.5 MB, free: 12.34 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.001277/0.001278, allocations: 64.45 kB / 337.5 MB, free: 25.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07505/0.07634, allocations: 48.16 MB / 385.7 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.2609/0.3373, allocations: 127.6 MB / 0.5012 GB, free: 6.867 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3124/0.6498, allocations: 109.8 MB / 0.6085 GB, free: 268 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004975/0.6503, allocations: 5.656 kB / 0.6085 GB, free: 268 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002611/0.653, allocations: 1.194 MB / 0.6096 GB, free: 260 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.6559, allocations: 1.454 MB / 0.611 GB, free: 244 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06402/0.7199, allocations: 25.94 MB / 0.6364 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.7217, allocations: 1.329 MB / 0.6377 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.7219, allocations: 122.1 kB / 0.6378 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01271/0.7346, allocations: 8.726 MB / 0.6463 GB, free: 13.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004712/0.7351, allocations: 379.4 kB / 0.6467 GB, free: 13.03 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.036e-05/0.7352, allocations: 42.16 kB / 0.6467 GB, free: 13.03 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05151/0.7867, allocations: 32.83 MB / 0.6788 GB, free: 7.41 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.787, allocations: 125.5 kB / 0.6789 GB, free: 7.355 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005503/0.7875, allocations: 304.7 kB / 0.6792 GB, free: 7.148 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0471/0.8347, allocations: 14.16 MB / 0.693 GB, free: 10.22 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.344e-05/0.8347, allocations: 0 / 0.693 GB, free: 10.22 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.8347, allocations: 3.938 kB / 0.693 GB, free: 10.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.05e-05/0.8348, allocations: 0 / 0.693 GB, free: 10.21 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.008174/0.843, allocations: 2.576 MB / 0.6955 GB, free: 7.594 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.843, allocations: 8.031 kB / 0.6955 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008999/0.8439, allocations: 83.39 kB / 0.6956 GB, free: 7.504 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.8445, allocations: 335.3 kB / 0.6959 GB, free: 7.141 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.924e-05/0.8445, allocations: 32.66 kB / 0.696 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.8446, allocations: 32 kB / 0.696 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.8463, allocations: 0.5963 MB / 0.6966 GB, free: 6.469 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.8464, allocations: 4 kB / 0.6966 GB, free: 6.465 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.8464, allocations: 20 kB / 0.6966 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.8465, allocations: 17.38 kB / 0.6966 GB, free: 6.434 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.8482, allocations: 0.5481 MB / 0.6972 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00339/0.8516, allocations: 2.504 MB / 0.6996 GB, free: 3.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.8531, allocations: 0.4888 MB / 0.7001 GB, free: 2.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006962/0.8539, allocations: 346.3 kB / 0.7004 GB, free: 2.336 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3919/1.246, allocations: 139 MB / 0.8361 GB, free: 282.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/1.246, allocations: 42.8 kB / 0.8362 GB, free: 282.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.948e-06/1.246, allocations: 0 / 0.8362 GB, free: 282.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006186/1.252, allocations: 2.339 MB / 0.8384 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/1.252, allocations: 55.38 kB / 0.8385 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/1.252, allocations: 257.1 kB / 0.8387 GB, free: 280.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/1.252, allocations: 35.39 kB / 0.8388 GB, free: 280.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/1.253, allocations: 183.4 kB / 0.8389 GB, free: 280.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/1.253, allocations: 270.7 kB / 0.8392 GB, free: 280.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/1.253, allocations: 97.77 kB / 0.8393 GB, free: 280.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.705e-05/1.253, allocations: 349.1 kB / 0.8396 GB, free: 280.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/1.253, allocations: 277.9 kB / 0.8399 GB, free: 279.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004854/1.254, allocations: 406.1 kB / 0.8403 GB, free: 279.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009036/1.255, allocations: 0.7114 MB / 0.841 GB, free: 279.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/1.255, allocations: 3.906 kB / 0.841 GB, free: 279.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001328/1.256, allocations: 0.8046 MB / 0.8418 GB, free: 278.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/1.256, allocations: 4.469 kB / 0.8418 GB, free: 278.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/1.256, allocations: 5.406 kB / 0.8418 GB, free: 278.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/1.257, allocations: 66.67 kB / 0.8418 GB, free: 278.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/1.257, allocations: 126.7 kB / 0.842 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08956/1.347, allocations: 25.62 MB / 0.867 GB, free: 256.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/1.347, allocations: 51.86 kB / 0.867 GB, free: 256.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/1.347, allocations: 20 kB / 0.867 GB, free: 256.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002941/1.348, allocations: 192 kB / 0.8672 GB, free: 256.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/1.348, allocations: 43.52 kB / 0.8673 GB, free: 256 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/1.349, allocations: 1.578 MB / 0.8688 GB, free: 254.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/1.349, allocations: 21.72 kB / 0.8688 GB, free: 254.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/1.349, allocations: 0 / 0.8688 GB, free: 254.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001105/1.351, allocations: 1.176 MB / 0.87 GB, free: 253.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/1.353, allocations: 1.648 MB / 0.8716 GB, free: 251.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/1.353, allocations: 4.875 kB / 0.8716 GB, free: 251.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/1.353, allocations: 67.95 kB / 0.8717 GB, free: 251.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002503/1.353, allocations: 113.2 kB / 0.8718 GB, free: 251.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/1.353, allocations: 12 kB / 0.8718 GB, free: 251.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009223/1.354, allocations: 1.993 MB / 0.8737 GB, free: 249 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/1.354, allocations: 0 / 0.8737 GB, free: 249 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/1.356, allocations: 1.254 MB / 0.875 GB, free: 247.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/1.356, allocations: 116.5 kB / 0.8751 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.076e-05/1.356, allocations: 12.06 kB / 0.8751 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/1.356, allocations: 43.86 kB / 0.8751 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/1.356, allocations: 43.89 kB / 0.8752 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/1.356, allocations: 15.98 kB / 0.8752 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002095/1.357, allocations: 247 kB / 0.8754 GB, free: 247.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/1.357, allocations: 0 / 0.8754 GB, free: 247.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007856/1.364, allocations: 3.186 MB / 0.8785 GB, free: 244.5 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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01579/1.38, allocations: 4.179 MB / 0.8826 GB, free: 240.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002268/1.383, allocations: 0.9876 MB / 0.8836 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.383, allocations: 0 / 0.8836 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007835/1.383, allocations: 0.5031 MB / 0.8841 GB, free: 239.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/1.385, allocations: 394.2 kB / 0.8844 GB, free: 238.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/1.387, allocations: 1.371 MB / 0.8858 GB, free: 237.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/1.388, allocations: 0.8525 MB / 0.8866 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004625/1.388, allocations: 153.7 kB / 0.8868 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.354e-05/1.388, allocations: 39.44 kB / 0.8868 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of SimCode: time 6.41e-07/1.388, allocations: 0 / 0.8868 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.1216/1.51, allocations: 118.1 MB / 1.002 GB, free: 118.1 MB / 0.5919 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)