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.004085/0.004085, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.0009605/0.0009605, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.191/1.191, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04234/0.04234, allocations: 9.088 MB / 279 MB, free: 12.09 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.001286/0.001286, allocations: 71.89 kB / 387.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2033, allocations: 48.15 MB / 435.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1111/0.3144, allocations: 128.9 MB / 0.5513 GB, free: 15.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2851/0.5995, allocations: 111.1 MB / 0.6598 GB, free: 352 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004732/0.6, allocations: 7.875 kB / 0.6598 GB, free: 352 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.6027, allocations: 1.554 MB / 0.6613 GB, free: 340 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002743/0.6055, allocations: 1.836 MB / 0.6631 GB, free: 292 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.06802/0.6735, allocations: 31.95 MB / 0.6943 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.6753, allocations: 1.406 MB / 0.6957 GB, free: 4.695 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.6756, allocations: 124.2 kB / 0.6958 GB, free: 4.602 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01737/0.693, allocations: 11.87 MB / 0.7074 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.6937, allocations: 379.1 kB / 0.7078 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.6939, allocations: 44 kB / 0.7078 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06002/0.7539, allocations: 36.98 MB / 0.7439 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.7542, allocations: 118.2 kB / 0.744 GB, free: 6.906 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004829/0.7547, allocations: 310.2 kB / 0.7443 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03781/0.7925, allocations: 14.52 MB / 0.7585 GB, free: 9.172 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.7925, allocations: 0 / 0.7585 GB, free: 9.172 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.665e-06/0.7925, allocations: 0 / 0.7585 GB, free: 9.172 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.7926, allocations: 0 / 0.7585 GB, free: 9.172 MB / 0.545 GB 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.004976/0.7975, allocations: 2.568 MB / 0.761 GB, free: 6.559 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.7976, allocations: 8.031 kB / 0.761 GB, free: 6.551 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005629/0.7981, allocations: 87.39 kB / 0.7611 GB, free: 6.465 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.7985, allocations: 341.8 kB / 0.7614 GB, free: 6.094 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.7986, allocations: 32.66 kB / 0.7615 GB, free: 6.062 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/0.7986, allocations: 32 kB / 0.7615 GB, free: 6.031 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.7999, allocations: 0.604 MB / 0.7621 GB, free: 5.41 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.7999, allocations: 0 / 0.7621 GB, free: 5.41 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.7999, allocations: 16 kB / 0.7621 GB, free: 5.395 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.8, allocations: 15.59 kB / 0.7621 GB, free: 5.383 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.8012, allocations: 0.552 MB / 0.7627 GB, free: 4.836 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.8035, allocations: 2.462 MB / 0.7651 GB, free: 2.176 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.8045, allocations: 490.3 kB / 0.7655 GB, free: 1.691 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000505/0.805, allocations: 342 kB / 0.7659 GB, free: 1.359 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.361/1.166, allocations: 139 MB / 0.9016 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/1.166, allocations: 30.56 kB / 0.9016 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.584e-06/1.166, allocations: 0 / 0.9016 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.004772/1.171, allocations: 2.335 MB / 0.9039 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.81e-05/1.171, allocations: 59.16 kB / 0.904 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/1.171, allocations: 264.8 kB / 0.9042 GB, free: 210 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/1.171, allocations: 29.7 kB / 0.9042 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/1.171, allocations: 195.6 kB / 0.9044 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.726e-05/1.171, allocations: 261.9 kB / 0.9047 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/1.171, allocations: 98.02 kB / 0.9048 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.203e-05/1.171, allocations: 358.8 kB / 0.9051 GB, free: 209 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/1.172, allocations: 273.3 kB / 0.9054 GB, free: 208.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/1.172, allocations: 393.8 kB / 0.9058 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008899/1.173, allocations: 0.6943 MB / 0.9064 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.173, allocations: 4 kB / 0.9064 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001111/1.174, allocations: 0.783 MB / 0.9072 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/1.174, allocations: 15.45 kB / 0.9072 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/1.174, allocations: 4 kB / 0.9072 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/1.175, allocations: 61.56 kB / 0.9073 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006202/1.175, allocations: 144.7 kB / 0.9074 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06127/1.236, allocations: 22.96 MB / 0.9298 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/1.237, allocations: 32.03 kB / 0.9299 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/1.237, allocations: 20 kB / 0.9299 GB, free: 183 MB / 0.6075 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.0001955/1.237, allocations: 192 kB / 0.9301 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.547e-05/1.237, allocations: 47.47 kB / 0.9301 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/1.239, allocations: 1.71 MB / 0.9318 GB, free: 181 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/1.239, allocations: 18.64 kB / 0.9318 GB, free: 181 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/1.239, allocations: 0 / 0.9318 GB, free: 181 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001191/1.24, allocations: 1.296 MB / 0.9331 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/1.242, allocations: 1.747 MB / 0.9348 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.242, allocations: 0 / 0.9348 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/1.242, allocations: 71.88 kB / 0.9348 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002546/1.242, allocations: 178.2 kB / 0.935 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/1.242, allocations: 8 kB / 0.935 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009291/1.243, allocations: 2.571 MB / 0.9375 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.243, allocations: 0 / 0.9375 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/1.245, allocations: 1.378 MB / 0.9389 GB, free: 173.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/1.245, allocations: 116.5 kB / 0.939 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/1.245, allocations: 4 kB / 0.939 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/1.245, allocations: 36.03 kB / 0.939 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.483e-05/1.245, allocations: 35.94 kB / 0.9391 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/1.245, allocations: 23.92 kB / 0.9391 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001593/1.246, allocations: 227.1 kB / 0.9393 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/1.246, allocations: 0 / 0.9393 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007032/1.253, allocations: 3.513 MB / 0.9427 GB, free: 169.9 MB / 0.6075 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.01184/1.264, allocations: 4.771 MB / 0.9474 GB, free: 165.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001872/1.266, allocations: 1.058 MB / 0.9484 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.266, allocations: 0 / 0.9484 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006237/1.267, allocations: 0.5072 MB / 0.9489 GB, free: 164 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/1.269, allocations: 391.5 kB / 0.9493 GB, free: 163.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/1.27, allocations: 1.19 MB / 0.9505 GB, free: 162.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001837/1.27, allocations: 0.8526 MB / 0.9513 GB, free: 161.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002836/1.27, allocations: 143.1 kB / 0.9514 GB, free: 161.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.233e-05/1.271, allocations: 39.44 kB / 0.9515 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of SimCode: time 6.41e-07/1.271, allocations: 7.938 kB / 0.9515 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of Templates: time 0.107/1.377, allocations: 126.8 MB / 1.075 GB, free: 34.4 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile (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)