Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008668/0.008668, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002037/0.002037, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.322/1.322, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04422/0.04422, allocations: 9.092 MB / 279 MB, free: 2.961 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.001469/0.001469, allocations: 67.28 kB / 387.5 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07232/0.07379, allocations: 48.18 MB / 435.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3491/0.4229, allocations: 128.6 MB / 0.5511 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09828/0.5212, allocations: 111.1 MB / 0.6596 GB, free: 1.469 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005209/0.5218, allocations: 7.938 kB / 0.6596 GB, free: 1.461 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003092/0.525, allocations: 1.546 MB / 0.6611 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003737/0.5287, allocations: 1.828 MB / 0.6629 GB, free: 14.07 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.07094/0.5997, allocations: 31.15 MB / 0.6933 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001942/0.6016, allocations: 1.41 MB / 0.6947 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.6019, allocations: 120 kB / 0.6948 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01703/0.6189, allocations: 9.161 MB / 0.7038 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005453/0.6195, allocations: 370.5 kB / 0.7041 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.6196, allocations: 44 kB / 0.7042 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05708/0.6767, allocations: 34.96 MB / 0.7383 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.677, allocations: 123.5 kB / 0.7384 GB, free: 0.5859 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004883/0.6775, allocations: 310.7 kB / 0.7387 GB, free: 288 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.306/0.9835, allocations: 14.05 MB / 0.7524 GB, free: 57.21 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.9835, allocations: 0 / 0.7524 GB, free: 57.21 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.515e-06/0.9836, allocations: 0.8125 kB / 0.7524 GB, free: 57.21 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.9836, allocations: 0 / 0.7524 GB, free: 57.21 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.008897/0.9925, allocations: 2.564 MB / 0.7549 GB, free: 55.85 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.9925, allocations: 11.28 kB / 0.7549 GB, free: 55.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006303/0.9932, allocations: 88.09 kB / 0.755 GB, free: 55.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.9937, allocations: 342.2 kB / 0.7554 GB, free: 55.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.9937, allocations: 27.94 kB / 0.7554 GB, free: 55.6 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.9938, allocations: 36.16 kB / 0.7554 GB, free: 55.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.995, allocations: 0.6 MB / 0.756 GB, free: 55.51 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.995, allocations: 2.906 kB / 0.756 GB, free: 55.51 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.9951, allocations: 15.53 kB / 0.756 GB, free: 55.51 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.9951, allocations: 15.31 kB / 0.756 GB, free: 55.51 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.9963, allocations: 0.5511 MB / 0.7566 GB, free: 55.51 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.9984, allocations: 2.547 MB / 0.7591 GB, free: 53.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.9995, allocations: 0.5069 MB / 0.7596 GB, free: 53.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/1, allocations: 337.1 kB / 0.7599 GB, free: 53.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2328/1.233, allocations: 139 MB / 0.8956 GB, free: 24.35 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/1.233, allocations: 39.09 kB / 0.8956 GB, free: 24.31 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=79): time 4.989e-06/1.233, allocations: 0 / 0.8956 GB, free: 24.31 MB / 0.6387 GB Notification: Performance of matching and sorting (n=83): time 0.006694/1.24, allocations: 2.334 MB / 0.8979 GB, free: 22.5 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/1.24, allocations: 58.44 kB / 0.898 GB, free: 22.43 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/1.24, allocations: 247.9 kB / 0.8982 GB, free: 22.23 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/1.24, allocations: 30.45 kB / 0.8982 GB, free: 22.2 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/1.24, allocations: 188.1 kB / 0.8984 GB, free: 22.04 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/1.24, allocations: 267 kB / 0.8987 GB, free: 21.81 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/1.24, allocations: 97.42 kB / 0.8988 GB, free: 21.74 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001231/1.241, allocations: 353.7 kB / 0.8991 GB, free: 21.41 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/1.241, allocations: 269.2 kB / 0.8994 GB, free: 21.25 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/1.242, allocations: 394.5 kB / 0.8997 GB, free: 20.94 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009751/1.243, allocations: 0.7054 MB / 0.9004 GB, free: 20.45 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/1.243, allocations: 3 kB / 0.9004 GB, free: 20.45 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001371/1.244, allocations: 0.7881 MB / 0.9012 GB, free: 19.91 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/1.244, allocations: 11.03 kB / 0.9012 GB, free: 19.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/1.244, allocations: 5.562 kB / 0.9012 GB, free: 19.9 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/1.244, allocations: 64.95 kB / 0.9013 GB, free: 19.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/1.245, allocations: 96.69 kB / 0.9014 GB, free: 19.75 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06532/1.31, allocations: 17.18 MB / 0.9181 GB, free: 19.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/1.31, allocations: 26.67 kB / 0.9182 GB, free: 19.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/1.311, allocations: 23.86 kB / 0.9182 GB, free: 19.04 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0002873/1.311, allocations: 189.9 kB / 0.9184 GB, free: 18.89 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/1.311, allocations: 46.44 kB / 0.9184 GB, free: 18.84 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/1.313, allocations: 1.542 MB / 0.9199 GB, free: 17.76 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/1.313, allocations: 14.52 kB / 0.9199 GB, free: 17.75 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/1.313, allocations: 0 / 0.9199 GB, free: 17.75 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001309/1.314, allocations: 1.145 MB / 0.9211 GB, free: 16.79 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/1.316, allocations: 1.583 MB / 0.9226 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/1.316, allocations: 0.875 kB / 0.9226 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/1.316, allocations: 81.03 kB / 0.9227 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001914/1.317, allocations: 57.98 kB / 0.9227 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/1.317, allocations: 12.78 kB / 0.9227 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009389/1.318, allocations: 1.423 MB / 0.9241 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.318, allocations: 0 / 0.9241 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/1.319, allocations: 1.18 MB / 0.9253 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/1.319, allocations: 116.6 kB / 0.9254 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/1.32, allocations: 14.34 kB / 0.9254 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/1.32, allocations: 27.09 kB / 0.9254 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.484e-05/1.32, allocations: 50.88 kB / 0.9255 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/1.32, allocations: 11.25 kB / 0.9255 GB, free: 13 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002179/1.32, allocations: 242 kB / 0.9257 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/1.32, allocations: 0 / 0.9257 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01037/1.331, allocations: 3.523 MB / 0.9292 GB, free: 9.395 MB / 0.6544 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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01984/1.35, allocations: 4.523 MB / 0.9336 GB, free: 5.508 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002008/1.352, allocations: 0.9518 MB / 0.9345 GB, free: 4.801 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/1.353, allocations: 0 / 0.9345 GB, free: 4.801 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0008746/1.353, allocations: 496.2 kB / 0.935 GB, free: 4.449 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/1.355, allocations: 382.4 kB / 0.9353 GB, free: 4.113 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/1.357, allocations: 1.153 MB / 0.9365 GB, free: 3.125 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/1.358, allocations: 0.8558 MB / 0.9373 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0004088/1.358, allocations: 164.3 kB / 0.9375 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/1.358, allocations: 39.44 kB / 0.9375 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of SimCode: time 2.11e-07/1.358, allocations: 0 / 0.9375 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of Templates: time 0.3227/1.681, allocations: 125.6 MB / 1.06 GB, free: 289.8 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)