Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004978/0.004978, allocations: 99.73 kB / 15.73 MB, free: 5.594 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.00117/0.00117, allocations: 197.2 kB / 16.67 MB, free: 5.527 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.15/1.15, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04304/0.04304, allocations: 9.086 MB / 279 MB, free: 2.949 MB / 222.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.001345/0.001345, allocations: 68.75 kB / 387.5 MB, free: 47.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06373/0.06509, allocations: 48.18 MB / 435.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.2923/0.3574, allocations: 128.8 MB / 0.5512 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.08777/0.4452, allocations: 111.1 MB / 0.6598 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004573/0.4457, allocations: 4 kB / 0.6598 GB, free: 1.094 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002902/0.4487, allocations: 1.55 MB / 0.6613 GB, free: 15.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.4521, allocations: 1.828 MB / 0.6631 GB, free: 13.7 MB / 494.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.06465/0.5168, allocations: 31.3 MB / 0.6936 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001587/0.5184, allocations: 1.406 MB / 0.695 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.5186, allocations: 123.2 kB / 0.6951 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01454/0.5331, allocations: 9.927 MB / 0.7048 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005709/0.5337, allocations: 379.6 kB / 0.7052 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.996e-05/0.5338, allocations: 44 kB / 0.7052 GB, free: 2.438 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2596/0.7934, allocations: 35.26 MB / 0.7396 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.7936, allocations: 112.8 kB / 0.7398 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006007/0.7942, allocations: 309.8 kB / 0.74 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03291/0.8272, allocations: 14.09 MB / 0.7538 GB, free: 57.4 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.8272, allocations: 0 / 0.7538 GB, free: 57.4 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8272, allocations: 0 / 0.7538 GB, free: 57.4 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.8272, allocations: 0 / 0.7538 GB, free: 57.4 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.005676/0.8329, allocations: 2.567 MB / 0.7563 GB, free: 56.02 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.8329, allocations: 13.84 kB / 0.7563 GB, free: 56.02 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000552/0.8335, allocations: 85.8 kB / 0.7564 GB, free: 56 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.8338, allocations: 337.6 kB / 0.7567 GB, free: 55.77 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.8339, allocations: 35.62 kB / 0.7568 GB, free: 55.77 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.8339, allocations: 34.97 kB / 0.7568 GB, free: 55.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.8351, allocations: 0.5975 MB / 0.7574 GB, free: 55.68 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.8351, allocations: 0 / 0.7574 GB, free: 55.68 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.8351, allocations: 16.09 kB / 0.7574 GB, free: 55.68 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.8351, allocations: 15.27 kB / 0.7574 GB, free: 55.68 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.8363, allocations: 0.5485 MB / 0.758 GB, free: 55.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.8382, allocations: 2.511 MB / 0.7604 GB, free: 54.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009459/0.8391, allocations: 0.4939 MB / 0.7609 GB, free: 53.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004392/0.8396, allocations: 334.2 kB / 0.7612 GB, free: 53.97 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2127/1.052, allocations: 139 MB / 0.8969 GB, free: 23.52 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/1.052, allocations: 42.41 kB / 0.897 GB, free: 23.48 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 2.304e-06/1.052, allocations: 0 / 0.897 GB, free: 23.48 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005142/1.057, allocations: 2.331 MB / 0.8992 GB, free: 21.67 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/1.058, allocations: 55.41 kB / 0.8993 GB, free: 21.61 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/1.058, allocations: 255.2 kB / 0.8995 GB, free: 21.39 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/1.058, allocations: 34.95 kB / 0.8996 GB, free: 21.36 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 8.176e-05/1.058, allocations: 193.9 kB / 0.8998 GB, free: 21.2 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/1.058, allocations: 254.9 kB / 0.9 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/1.058, allocations: 103.4 kB / 0.9001 GB, free: 20.91 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001191/1.058, allocations: 352.1 kB / 0.9004 GB, free: 20.57 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/1.059, allocations: 278.2 kB / 0.9007 GB, free: 20.41 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/1.059, allocations: 378.5 kB / 0.9011 GB, free: 20.12 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000863/1.06, allocations: 0.6875 MB / 0.9017 GB, free: 19.66 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.06, allocations: 7 kB / 0.9017 GB, free: 19.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001171/1.061, allocations: 0.7895 MB / 0.9025 GB, free: 19.12 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.061, allocations: 14.02 kB / 0.9025 GB, free: 19.11 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/1.061, allocations: 4 kB / 0.9025 GB, free: 19.1 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002036/1.061, allocations: 54.12 kB / 0.9026 GB, free: 19.05 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005323/1.062, allocations: 131.2 kB / 0.9027 GB, free: 18.94 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06172/1.124, allocations: 19.42 MB / 0.9217 GB, free: 16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/1.124, allocations: 33.22 kB / 0.9217 GB, free: 15.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/1.124, allocations: 16.69 kB / 0.9217 GB, free: 15.96 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0002209/1.124, allocations: 186.8 kB / 0.9219 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/1.124, allocations: 43.52 kB / 0.9219 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/1.126, allocations: 1.678 MB / 0.9236 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/1.126, allocations: 13.23 kB / 0.9236 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/1.126, allocations: 0 / 0.9236 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001332/1.127, allocations: 1.251 MB / 0.9248 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/1.129, allocations: 1.71 MB / 0.9265 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/1.129, allocations: 0 / 0.9265 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/1.13, allocations: 78.41 kB / 0.9266 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002417/1.13, allocations: 104.7 kB / 0.9267 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/1.13, allocations: 10.5 kB / 0.9267 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/1.131, allocations: 1.998 MB / 0.9286 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/1.131, allocations: 4.094 kB / 0.9286 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/1.133, allocations: 1.3 MB / 0.9299 GB, free: 9.242 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/1.133, allocations: 120.4 kB / 0.93 GB, free: 9.109 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.311e-05/1.133, allocations: 11.69 kB / 0.93 GB, free: 9.102 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/1.134, allocations: 27.41 kB / 0.93 GB, free: 9.082 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/1.134, allocations: 43.94 kB / 0.9301 GB, free: 9.043 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/1.134, allocations: 15.8 kB / 0.9301 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001994/1.134, allocations: 222.8 kB / 0.9303 GB, free: 8.855 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/1.134, allocations: 0 / 0.9303 GB, free: 8.855 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.008073/1.142, allocations: 3.517 MB / 0.9337 GB, free: 5.449 MB / 0.6544 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 (39): * Single equations (assignments): 33 * 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 {(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.01553/1.158, allocations: 4.557 MB / 0.9382 GB, free: 1.523 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001893/1.159, allocations: 1.021 MB / 0.9392 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.159, allocations: 4 kB / 0.9392 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006954/1.16, allocations: 0.5027 MB / 0.9397 GB, free: 400 kB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/1.162, allocations: 394 kB / 0.9401 GB, free: 44 kB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/1.164, allocations: 1.185 MB / 0.9412 GB, free: 15.04 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/1.164, allocations: 0.8503 MB / 0.9421 GB, free: 14.16 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.000357/1.164, allocations: 146 kB / 0.9422 GB, free: 14.02 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/1.164, allocations: 35.44 kB / 0.9422 GB, free: 13.98 MB / 0.67 GB Notification: Performance of SimCode: time 3.01e-07/1.164, allocations: 0 / 0.9422 GB, free: 13.98 MB / 0.67 GB Notification: Performance of Templates: time 0.2764/1.441, allocations: 126.4 MB / 1.066 GB, free: 283.4 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)