Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005024/0.005024, allocations: 100.3 kB / 15.73 MB, free: 5.965 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.001177/0.001177, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.239/1.239, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04508/0.04508, allocations: 9.096 MB / 279 MB, free: 12.04 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.001291/0.001291, allocations: 63.89 kB / 387.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2088, allocations: 48.16 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1175/0.3263, allocations: 128.8 MB / 0.5513 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2906/0.617, allocations: 111.1 MB / 0.6597 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004669/0.6175, allocations: 8.344 kB / 0.6597 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.6201, allocations: 1.551 MB / 0.6612 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.6228, allocations: 1.834 MB / 0.663 GB, free: 256 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.06477/0.6876, allocations: 31.35 MB / 0.6936 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001647/0.6893, allocations: 1.403 MB / 0.695 GB, free: 5.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.6895, allocations: 131.2 kB / 0.6951 GB, free: 5.164 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01413/0.7037, allocations: 10.04 MB / 0.7049 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006352/0.7043, allocations: 379.5 kB / 0.7053 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.997e-05/0.7044, allocations: 40 kB / 0.7053 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05797/0.7624, allocations: 35.37 MB / 0.7399 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.7626, allocations: 122.6 kB / 0.74 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004925/0.7632, allocations: 304.9 kB / 0.7403 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0353/0.7985, allocations: 14.16 MB / 0.7541 GB, free: 13.55 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.7985, allocations: 3.938 kB / 0.7541 GB, free: 13.55 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7985, allocations: 0 / 0.7541 GB, free: 13.55 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.7985, allocations: 0 / 0.7541 GB, free: 13.55 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.005413/0.8039, allocations: 2.572 MB / 0.7566 GB, free: 10.93 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.804, allocations: 12.02 kB / 0.7566 GB, free: 10.92 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006053/0.8046, allocations: 79.41 kB / 0.7567 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.8051, allocations: 347.8 kB / 0.7571 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.54e-05/0.8052, allocations: 28.66 kB / 0.7571 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.625e-05/0.8052, allocations: 32 kB / 0.7571 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.8065, allocations: 0.6001 MB / 0.7577 GB, free: 9.789 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.8065, allocations: 0 / 0.7577 GB, free: 9.789 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.8066, allocations: 16 kB / 0.7577 GB, free: 9.773 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.664e-05/0.8066, allocations: 18.19 kB / 0.7577 GB, free: 9.758 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.8079, allocations: 0.5481 MB / 0.7583 GB, free: 9.215 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.8103, allocations: 2.469 MB / 0.7607 GB, free: 6.551 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.8114, allocations: 494.3 kB / 0.7611 GB, free: 6.062 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005121/0.8119, allocations: 342.5 kB / 0.7615 GB, free: 5.727 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3764/1.188, allocations: 139 MB / 0.8972 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/1.188, allocations: 36.09 kB / 0.8972 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.875e-06/1.188, allocations: 0 / 0.8972 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.004782/1.193, allocations: 2.329 MB / 0.8995 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.867e-05/1.193, allocations: 59.16 kB / 0.8996 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/1.193, allocations: 272.3 kB / 0.8998 GB, free: 214 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/1.193, allocations: 29.7 kB / 0.8999 GB, free: 214 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/1.193, allocations: 191.9 kB / 0.9 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.863e-05/1.194, allocations: 263.4 kB / 0.9003 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.797e-05/1.194, allocations: 98.11 kB / 0.9004 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.778e-05/1.194, allocations: 350.8 kB / 0.9007 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/1.194, allocations: 273.3 kB / 0.901 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/1.195, allocations: 389.4 kB / 0.9014 GB, free: 212.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008161/1.195, allocations: 0.6979 MB / 0.902 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/1.195, allocations: 0 / 0.902 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001124/1.197, allocations: 0.8024 MB / 0.9028 GB, free: 210.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/1.197, allocations: 9.844 kB / 0.9028 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/1.197, allocations: 4.5 kB / 0.9028 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/1.197, allocations: 65.61 kB / 0.9029 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/1.197, allocations: 138.3 kB / 0.903 GB, free: 210.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05903/1.256, allocations: 19.66 MB / 0.9222 GB, free: 190.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/1.257, allocations: 31.91 kB / 0.9223 GB, free: 190.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/1.257, allocations: 19.98 kB / 0.9223 GB, free: 190.4 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.0002156/1.257, allocations: 191.7 kB / 0.9225 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.153e-05/1.257, allocations: 45.78 kB / 0.9225 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/1.259, allocations: 1.721 MB / 0.9242 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/1.259, allocations: 8 kB / 0.9242 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/1.259, allocations: 4 kB / 0.9242 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001144/1.26, allocations: 1.288 MB / 0.9255 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/1.262, allocations: 1.756 MB / 0.9272 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.262, allocations: 0 / 0.9272 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/1.262, allocations: 79.89 kB / 0.9272 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002608/1.262, allocations: 166.3 kB / 0.9274 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/1.262, allocations: 8 kB / 0.9274 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009796/1.263, allocations: 2.574 MB / 0.9299 GB, free: 182.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.263, allocations: 3.984 kB / 0.9299 GB, free: 182.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/1.265, allocations: 1.374 MB / 0.9313 GB, free: 180.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/1.265, allocations: 116.6 kB / 0.9314 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/1.265, allocations: 12 kB / 0.9314 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/1.265, allocations: 23.97 kB / 0.9314 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.113e-05/1.265, allocations: 46.66 kB / 0.9315 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/1.265, allocations: 12 kB / 0.9315 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001582/1.266, allocations: 223 kB / 0.9317 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/1.266, allocations: 0 / 0.9317 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006704/1.272, allocations: 3.517 MB / 0.9351 GB, free: 177.2 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.01368/1.286, allocations: 4.562 MB / 0.9396 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002095/1.288, allocations: 1.068 MB / 0.9406 GB, free: 172.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/1.288, allocations: 0 / 0.9406 GB, free: 172.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006703/1.289, allocations: 0.5071 MB / 0.9411 GB, free: 171.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/1.291, allocations: 395 kB / 0.9415 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/1.292, allocations: 1.187 MB / 0.9427 GB, free: 170 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/1.292, allocations: 0.8526 MB / 0.9435 GB, free: 169.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003099/1.292, allocations: 150.6 kB / 0.9436 GB, free: 169 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.521e-05/1.293, allocations: 35.44 kB / 0.9437 GB, free: 168.9 MB / 0.6075 GB Notification: Performance of SimCode: time 3.6e-07/1.293, allocations: 0 / 0.9437 GB, free: 168.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1131/1.406, allocations: 126.7 MB / 1.067 GB, free: 42.16 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)