Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00705/0.007051, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001351/0.001352, allocations: 190.4 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.521/1.521, allocations: 205.1 MB / 222.5 MB, free: 4.375 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05124/0.05124, allocations: 9.097 MB / 279 MB, free: 11.95 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.001536/0.001536, allocations: 67.84 kB / 387.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3897, allocations: 48.15 MB / 435.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.173/0.5628, allocations: 142.2 MB / 0.5643 GB, free: 2.227 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4514/1.014, allocations: 97.71 MB / 0.6597 GB, free: 256 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006716/1.015, allocations: 8.438 kB / 0.6597 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00344/1.018, allocations: 1.548 MB / 0.6612 GB, free: 248 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003939/1.022, allocations: 1.828 MB / 0.663 GB, free: 204 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.08942/1.112, allocations: 31.35 MB / 0.6937 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/1.115, allocations: 1.411 MB / 0.695 GB, free: 5.254 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/1.115, allocations: 133.3 kB / 0.6952 GB, free: 5.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01916/1.134, allocations: 10.06 MB / 0.705 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005086/1.135, allocations: 378.5 kB / 0.7053 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.204e-05/1.135, allocations: 40 kB / 0.7054 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05791/1.193, allocations: 29.41 MB / 0.7341 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002851/1.193, allocations: 115.7 kB / 0.7342 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005615/1.194, allocations: 306.1 kB / 0.7345 GB, free: 428 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03878/1.233, allocations: 11.9 MB / 0.7461 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/1.233, allocations: 3.984 kB / 0.7461 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.834e-06/1.233, allocations: 0 / 0.7461 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.048e-05/1.233, allocations: 0 / 0.7461 GB, free: 5.348 MB / 0.5294 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.005706/1.238, allocations: 2.143 MB / 0.7482 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.238, allocations: 8.031 kB / 0.7482 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/1.239, allocations: 75.41 kB / 0.7483 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/1.239, allocations: 340 kB / 0.7486 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/1.24, allocations: 36.59 kB / 0.7487 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.529e-05/1.24, allocations: 28 kB / 0.7487 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/1.241, allocations: 0.5883 MB / 0.7493 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/1.241, allocations: 0 / 0.7493 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.111e-05/1.241, allocations: 16 kB / 0.7493 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/1.241, allocations: 18.73 kB / 0.7493 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/1.242, allocations: 0.5129 MB / 0.7498 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002509/1.245, allocations: 2.485 MB / 0.7522 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/1.246, allocations: 494.8 kB / 0.7527 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005137/1.246, allocations: 334.8 kB / 0.753 GB, free: 13.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4354/1.682, allocations: 113.3 MB / 0.8636 GB, free: 250.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.908e-05/1.682, allocations: 37.59 kB / 0.8637 GB, free: 250.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 4.248e-06/1.682, allocations: 0 / 0.8637 GB, free: 250.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006771/1.688, allocations: 2.635 MB / 0.8662 GB, free: 249.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/1.689, allocations: 55.38 kB / 0.8663 GB, free: 249.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/1.689, allocations: 260.5 kB / 0.8665 GB, free: 249 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/1.689, allocations: 29.7 kB / 0.8666 GB, free: 248.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.532e-05/1.689, allocations: 189.8 kB / 0.8667 GB, free: 248.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/1.689, allocations: 265 kB / 0.867 GB, free: 248.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/1.689, allocations: 100.3 kB / 0.8671 GB, free: 248.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.897e-05/1.689, allocations: 350.6 kB / 0.8674 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/1.69, allocations: 276.4 kB / 0.8677 GB, free: 248 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005168/1.69, allocations: 402.9 kB / 0.8681 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/1.691, allocations: 0.716 MB / 0.8688 GB, free: 247.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/1.691, allocations: 6.344 kB / 0.8688 GB, free: 247.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001265/1.693, allocations: 0.8178 MB / 0.8696 GB, free: 246.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/1.693, allocations: 3.938 kB / 0.8696 GB, free: 246.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/1.693, allocations: 3.875 kB / 0.8696 GB, free: 246.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007451/1.693, allocations: 152.2 kB / 0.8697 GB, free: 246.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/1.694, allocations: 121.6 kB / 0.8698 GB, free: 246.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/1.696, allocations: 3.752 MB / 0.8735 GB, free: 242.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/1.696, allocations: 27.86 kB / 0.8735 GB, free: 242.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.018e-05/1.696, allocations: 19.89 kB / 0.8736 GB, free: 242.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000212/1.696, allocations: 205.5 kB / 0.8737 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.659e-05/1.696, allocations: 46.19 kB / 0.8738 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/1.698, allocations: 1.683 MB / 0.8754 GB, free: 241.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/1.698, allocations: 7.953 kB / 0.8754 GB, free: 241.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/1.698, allocations: 0 / 0.8754 GB, free: 241.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001275/1.699, allocations: 1.243 MB / 0.8767 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/1.701, allocations: 1.743 MB / 0.8784 GB, free: 239.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/1.701, allocations: 0.9062 kB / 0.8784 GB, free: 239.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/1.702, allocations: 68.92 kB / 0.8784 GB, free: 239.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005983/1.702, allocations: 259.4 kB / 0.8787 GB, free: 239.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/1.702, allocations: 7.844 kB / 0.8787 GB, free: 239.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007682/1.703, allocations: 1.77 MB / 0.8804 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.703, allocations: 5.531 kB / 0.8804 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/1.705, allocations: 1.457 MB / 0.8818 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.356e-05/1.705, allocations: 113.7 kB / 0.8819 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/1.705, allocations: 10.44 kB / 0.882 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/1.706, allocations: 28.56 kB / 0.882 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.756e-05/1.706, allocations: 51.06 kB / 0.882 GB, free: 236.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/1.706, allocations: 15 kB / 0.882 GB, free: 236.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000179/1.706, allocations: 216.2 kB / 0.8823 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.706, allocations: 0.5 kB / 0.8823 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004997/1.711, allocations: 1.984 MB / 0.8842 GB, free: 235.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006623/1.717, allocations: 2.804 MB / 0.8869 GB, free: 233.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00179/1.719, allocations: 0.8856 MB / 0.8878 GB, free: 232.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.719, allocations: 0 / 0.8878 GB, free: 232.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006864/1.72, allocations: 440.1 kB / 0.8882 GB, free: 231.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/1.722, allocations: 393.2 kB / 0.8886 GB, free: 231.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/1.723, allocations: 1.182 MB / 0.8897 GB, free: 230.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/1.724, allocations: 0.8492 MB / 0.8906 GB, free: 229.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002955/1.724, allocations: 91.5 kB / 0.8907 GB, free: 229.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.394e-05/1.724, allocations: 39.42 kB / 0.8907 GB, free: 229.4 MB / 0.6075 GB Notification: Performance of SimCode: time 4.91e-07/1.724, allocations: 0 / 0.8907 GB, free: 229.4 MB / 0.6075 GB Notification: Performance of Templates: time 0.0759/1.8, allocations: 71.61 MB / 0.9606 GB, free: 157.8 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)