Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003887/0.003887, allocations: 103.4 kB / 15.73 MB, free: 6.051 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.0009472/0.0009472, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.183/1.183, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04258/0.04258, allocations: 9.092 MB / 279 MB, free: 12.1 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.001358/0.001358, allocations: 67.91 kB / 387.5 MB, free: 7.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2167, allocations: 48.15 MB / 435.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1297/0.3464, allocations: 142.2 MB / 0.5643 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2847/0.6311, allocations: 97.7 MB / 0.6597 GB, free: 320 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004306/0.6316, allocations: 9.688 kB / 0.6597 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002549/0.6342, allocations: 1.55 MB / 0.6613 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.6369, allocations: 1.83 MB / 0.663 GB, free: 260 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.06089/0.6978, allocations: 31.37 MB / 0.6937 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.6994, allocations: 1.407 MB / 0.6951 GB, free: 5.281 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.6996, allocations: 131.1 kB / 0.6952 GB, free: 5.184 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01419/0.7138, allocations: 10.06 MB / 0.705 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004386/0.7143, allocations: 378.1 kB / 0.7054 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.7144, allocations: 40 kB / 0.7054 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04578/0.7601, allocations: 31.41 MB / 0.7361 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.7604, allocations: 119.3 kB / 0.7362 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005728/0.761, allocations: 301.2 kB / 0.7365 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.02738/0.7884, allocations: 12.65 MB / 0.7488 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.7884, allocations: 4 kB / 0.7488 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7884, allocations: 0 / 0.7488 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.581e-05/0.7884, allocations: 0 / 0.7488 GB, free: 2.648 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.004685/0.7931, allocations: 2.279 MB / 0.7511 GB, free: 332 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.7932, allocations: 15.97 kB / 0.7511 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000525/0.7937, allocations: 79.41 kB / 0.7511 GB, free: 236 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.7942, allocations: 337.2 kB / 0.7515 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.7942, allocations: 32.66 kB / 0.7515 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.7943, allocations: 28 kB / 0.7515 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.7955, allocations: 0.596 MB / 0.7521 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.7955, allocations: 7.938 kB / 0.7521 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.7955, allocations: 12 kB / 0.7521 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.7956, allocations: 21.56 kB / 0.7521 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.7968, allocations: 0.5247 MB / 0.7527 GB, free: 14.64 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.7991, allocations: 2.486 MB / 0.7551 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.8001, allocations: 0.5029 MB / 0.7556 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.8006, allocations: 334.2 kB / 0.7559 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3138/1.114, allocations: 121.8 MB / 0.8749 GB, free: 238.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/1.114, allocations: 38.5 kB / 0.8749 GB, free: 238.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.435e-06/1.115, allocations: 0 / 0.8749 GB, free: 238.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.004809/1.119, allocations: 2.404 MB / 0.8773 GB, free: 236.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/1.119, allocations: 55.38 kB / 0.8773 GB, free: 236.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/1.12, allocations: 258.8 kB / 0.8776 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/1.12, allocations: 29.7 kB / 0.8776 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.437e-05/1.12, allocations: 190.9 kB / 0.8778 GB, free: 236.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.529e-05/1.12, allocations: 265.5 kB / 0.878 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.952e-05/1.12, allocations: 97.64 kB / 0.8781 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.276e-05/1.12, allocations: 350.7 kB / 0.8785 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/1.12, allocations: 279 kB / 0.8787 GB, free: 235.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/1.121, allocations: 393.5 kB / 0.8791 GB, free: 235.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000835/1.122, allocations: 0.7013 MB / 0.8798 GB, free: 235 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/1.122, allocations: 0 / 0.8798 GB, free: 235 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001191/1.123, allocations: 0.8092 MB / 0.8806 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/1.123, allocations: 11.58 kB / 0.8806 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/1.123, allocations: 0 / 0.8806 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/1.123, allocations: 105.3 kB / 0.8807 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/1.124, allocations: 108.9 kB / 0.8808 GB, free: 234.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06017/1.184, allocations: 19.19 MB / 0.8995 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/1.184, allocations: 28 kB / 0.8996 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/1.184, allocations: 20 kB / 0.8996 GB, free: 217.1 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): 40 * 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, 2} * 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.0001932/1.185, allocations: 195 kB / 0.8998 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.629e-05/1.185, allocations: 43.53 kB / 0.8998 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/1.186, allocations: 1.693 MB / 0.9015 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.186, allocations: 15.98 kB / 0.9015 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-06/1.186, allocations: 0 / 0.9015 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001168/1.187, allocations: 1.266 MB / 0.9027 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/1.189, allocations: 1.737 MB / 0.9044 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/1.189, allocations: 4.031 kB / 0.9044 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/1.19, allocations: 79.88 kB / 0.9045 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/1.19, allocations: 186.1 kB / 0.9047 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/1.19, allocations: 15.98 kB / 0.9047 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009436/1.191, allocations: 2.582 MB / 0.9072 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.191, allocations: 0 / 0.9072 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/1.192, allocations: 1.446 MB / 0.9086 GB, free: 207.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.4e-05/1.192, allocations: 124.5 kB / 0.9087 GB, free: 207.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.295e-05/1.193, allocations: 16.05 kB / 0.9087 GB, free: 207.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002817/1.193, allocations: 23.92 kB / 0.9088 GB, free: 207.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.946e-05/1.193, allocations: 54.8 kB / 0.9088 GB, free: 207.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/1.193, allocations: 19.98 kB / 0.9088 GB, free: 207.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001531/1.193, allocations: 219.1 kB / 0.909 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.193, allocations: 0 / 0.909 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005772/1.199, allocations: 3.223 MB / 0.9122 GB, free: 204.1 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.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), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01192/1.211, allocations: 4.164 MB / 0.9163 GB, free: 200.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001443/1.212, allocations: 1.006 MB / 0.9172 GB, free: 199.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.212, allocations: 0 / 0.9172 GB, free: 199.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006251/1.213, allocations: 0.5072 MB / 0.9177 GB, free: 198.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/1.215, allocations: 395.1 kB / 0.9181 GB, free: 198.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/1.216, allocations: 1.189 MB / 0.9193 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/1.216, allocations: 0.8487 MB / 0.9201 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002923/1.216, allocations: 115.2 kB / 0.9202 GB, free: 196.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.402e-05/1.216, allocations: 47.42 kB / 0.9203 GB, free: 196.2 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/1.216, allocations: 0 / 0.9203 GB, free: 196.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1033/1.32, allocations: 122.2 MB / 1.04 GB, free: 73.85 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)