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: translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 90.52 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.006989/0.006989, allocations: 171.1 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.724/1.724, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04531/0.04531, allocations: 9.071 MB / 279.8 MB, free: 12.14 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.0004748/0.0004748, allocations: 12 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09195, allocations: 49.2 MB / 388.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3408/0.4328, allocations: 128.9 MB / 0.5057 GB, free: 6.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4068/0.8396, allocations: 111.5 MB / 0.6146 GB, free: 1.789 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008042/0.8404, allocations: 7.25 kB / 0.6146 GB, free: 1.789 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00351/0.844, allocations: 1.18 MB / 0.6158 GB, free: 1.781 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003848/0.8478, allocations: 1.461 MB / 0.6172 GB, free: 1.77 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07303/0.9209, allocations: 25.76 MB / 0.6424 GB, free: 224 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00353/0.9244, allocations: 1.905 MB / 0.6442 GB, free: 0 / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.9247, allocations: 100.8 kB / 0.6443 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01964/0.9443, allocations: 11.45 MB / 0.6555 GB, free: 12.13 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005626/0.945, allocations: 385.5 kB / 0.6559 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.879e-05/0.945, allocations: 21.56 kB / 0.6559 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0602/1.005, allocations: 33.01 MB / 0.6881 GB, free: 6.602 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002643/1.006, allocations: 100.3 kB / 0.6882 GB, free: 6.551 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005378/1.006, allocations: 305.9 kB / 0.6885 GB, free: 6.375 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06177/1.068, allocations: 14.02 MB / 0.7022 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/1.068, allocations: 0 / 0.7022 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.819e-06/1.068, allocations: 4 kB / 0.7022 GB, free: 11.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.761e-05/1.068, allocations: 4 kB / 0.7022 GB, free: 11.56 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.007048/1.075, allocations: 2.486 MB / 0.7047 GB, free: 9.125 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/1.075, allocations: 8.031 kB / 0.7047 GB, free: 9.117 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000732/1.076, allocations: 88.31 kB / 0.7047 GB, free: 9.031 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/1.076, allocations: 338.4 kB / 0.7051 GB, free: 8.715 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/1.077, allocations: 26.78 kB / 0.7051 GB, free: 8.703 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/1.077, allocations: 39.56 kB / 0.7051 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/1.078, allocations: 0.6116 MB / 0.7057 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/1.078, allocations: 4 kB / 0.7057 GB, free: 8.227 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/1.078, allocations: 13.88 kB / 0.7057 GB, free: 8.223 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/1.078, allocations: 16.84 kB / 0.7058 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/1.08, allocations: 0.5728 MB / 0.7063 GB, free: 7.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003078/1.083, allocations: 2.474 MB / 0.7087 GB, free: 5.539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/1.084, allocations: 0.5042 MB / 0.7092 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005587/1.085, allocations: 352.6 kB / 0.7096 GB, free: 4.727 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4361/1.521, allocations: 135.8 MB / 0.8422 GB, free: 253.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/1.521, allocations: 32.88 kB / 0.8422 GB, free: 253.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=77): time 3.837e-06/1.521, allocations: 3.531 kB / 0.8422 GB, free: 253.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=81): time 0.006628/1.527, allocations: 2.401 MB / 0.8446 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/1.527, allocations: 60.41 kB / 0.8446 GB, free: 252.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/1.528, allocations: 261.6 kB / 0.8449 GB, free: 252.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/1.528, allocations: 37.64 kB / 0.8449 GB, free: 252.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/1.528, allocations: 185.6 kB / 0.8451 GB, free: 252.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/1.528, allocations: 265.3 kB / 0.8453 GB, free: 252 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-05/1.528, allocations: 61.38 kB / 0.8454 GB, free: 252 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.348e-05/1.528, allocations: 351.8 kB / 0.8457 GB, free: 251.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/1.529, allocations: 293.9 kB / 0.846 GB, free: 251.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/1.529, allocations: 404.8 kB / 0.8464 GB, free: 251.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/1.53, allocations: 0.7275 MB / 0.8471 GB, free: 250.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.53, allocations: 0 / 0.8471 GB, free: 250.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001423/1.532, allocations: 0.8254 MB / 0.8479 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/1.532, allocations: 10.38 kB / 0.8479 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/1.532, allocations: 3.938 kB / 0.8479 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002852/1.532, allocations: 68.73 kB / 0.848 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007318/1.533, allocations: 150.5 kB / 0.8481 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09805/1.631, allocations: 28.38 MB / 0.8759 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/1.632, allocations: 55.88 kB / 0.8759 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.517e-05/1.632, allocations: 23.98 kB / 0.8759 GB, free: 225.7 MB / 0.5762 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.0003847/1.632, allocations: 194 kB / 0.8761 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/1.632, allocations: 39.53 kB / 0.8762 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/1.635, allocations: 1.741 MB / 0.8779 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/1.635, allocations: 20.7 kB / 0.8779 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/1.635, allocations: 0 / 0.8779 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001503/1.636, allocations: 1.323 MB / 0.8792 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/1.639, allocations: 1.781 MB / 0.8809 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.639, allocations: 2.125 kB / 0.8809 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/1.639, allocations: 83.88 kB / 0.881 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003732/1.639, allocations: 174.4 kB / 0.8812 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/1.639, allocations: 12 kB / 0.8812 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/1.641, allocations: 2.481 MB / 0.8836 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.641, allocations: 0 / 0.8836 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/1.643, allocations: 1.416 MB / 0.885 GB, free: 216 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/1.643, allocations: 140.3 kB / 0.8851 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.018e-05/1.643, allocations: 15.81 kB / 0.8851 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004605/1.643, allocations: 43.97 kB / 0.8852 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/1.643, allocations: 43.92 kB / 0.8852 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/1.643, allocations: 12 kB / 0.8852 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002211/1.644, allocations: 228.2 kB / 0.8854 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.644, allocations: 0 / 0.8854 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009369/1.653, allocations: 3.183 MB / 0.8885 GB, free: 212.7 MB / 0.5762 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.01848/1.672, allocations: 4.346 MB / 0.8928 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002466/1.674, allocations: 1.043 MB / 0.8938 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/1.674, allocations: 1.203 kB / 0.8938 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008198/1.675, allocations: 0.5111 MB / 0.8943 GB, free: 207.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/1.677, allocations: 390 kB / 0.8947 GB, free: 206.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/1.679, allocations: 1.459 MB / 0.8961 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/1.679, allocations: 0.8526 MB / 0.8969 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004458/1.68, allocations: 149.2 kB / 0.8971 GB, free: 204.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.349e-05/1.68, allocations: 40.84 kB / 0.8971 GB, free: 204.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.68, allocations: 0 / 0.8971 GB, free: 204.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.129/1.809, allocations: 118.3 MB / 1.013 GB, free: 85.88 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) Environment - environmentSimulation: