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.00127/0.001271, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001281/0.001281, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.445/1.445, allocations: 205.1 MB / 222 MB, free: 4.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04255/0.04255, allocations: 9.09 MB / 278.4 MB, free: 12.39 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.001363/0.001363, allocations: 59.92 kB / 337.3 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08136/0.08274, allocations: 48.18 MB / 385.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.3166/0.3994, allocations: 144.1 MB / 0.5172 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3516/0.7511, allocations: 99.23 MB / 0.6141 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000724/0.7519, allocations: 7.094 kB / 0.6141 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003536/0.7554, allocations: 1.172 MB / 0.6153 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004039/0.7595, allocations: 1.47 MB / 0.6167 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07779/0.8373, allocations: 25.1 MB / 0.6412 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002281/0.8396, allocations: 1.828 MB / 0.643 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.8399, allocations: 96.64 kB / 0.6431 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01648/0.8564, allocations: 9.376 MB / 0.6523 GB, free: 12.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006485/0.8571, allocations: 386.2 kB / 0.6526 GB, free: 12.19 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.431e-05/0.8572, allocations: 26.22 kB / 0.6527 GB, free: 12.19 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04829/0.9055, allocations: 26.56 MB / 0.6786 GB, free: 9.508 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.9058, allocations: 98.53 kB / 0.6787 GB, free: 9.441 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005911/0.9064, allocations: 288.2 kB / 0.679 GB, free: 9.223 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04153/0.9479, allocations: 11.51 MB / 0.6902 GB, free: 460 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.948, allocations: 0 / 0.6902 GB, free: 460 kB / 478.1 MB Notification: Performance of FrontEnd: time 3.185e-06/0.948, allocations: 3.281 kB / 0.6902 GB, free: 460 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.948, allocations: 0 / 0.6902 GB, free: 460 kB / 478.1 MB 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.006514/0.9545, allocations: 2.145 MB / 0.6923 GB, free: 14.37 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.9546, allocations: 8.031 kB / 0.6923 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000527/0.9551, allocations: 79.34 kB / 0.6924 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.9556, allocations: 335.1 kB / 0.6927 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.9556, allocations: 31.59 kB / 0.6927 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.9557, allocations: 35.06 kB / 0.6928 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.9568, allocations: 0.5803 MB / 0.6933 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.9569, allocations: 3.938 kB / 0.6934 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.9569, allocations: 14.25 kB / 0.6934 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.9569, allocations: 21.97 kB / 0.6934 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.9581, allocations: 0.5171 MB / 0.6939 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.9607, allocations: 2.482 MB / 0.6963 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.9618, allocations: 0.4925 MB / 0.6968 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.9623, allocations: 326.3 kB / 0.6971 GB, free: 9.605 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3683/1.331, allocations: 113.3 MB / 0.8077 GB, free: 313.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/1.331, allocations: 35.67 kB / 0.8077 GB, free: 313.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.685e-06/1.331, allocations: 1.188 kB / 0.8077 GB, free: 313.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006273/1.337, allocations: 2.638 MB / 0.8103 GB, free: 313.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/1.337, allocations: 59.22 kB / 0.8104 GB, free: 313 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/1.337, allocations: 256.8 kB / 0.8106 GB, free: 312.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/1.337, allocations: 38.89 kB / 0.8107 GB, free: 312.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/1.338, allocations: 187.4 kB / 0.8108 GB, free: 312.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/1.338, allocations: 259.3 kB / 0.8111 GB, free: 312.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/1.338, allocations: 103.9 kB / 0.8112 GB, free: 312.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001/1.338, allocations: 354.2 kB / 0.8115 GB, free: 312.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/1.339, allocations: 280.8 kB / 0.8118 GB, free: 312 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/1.339, allocations: 399.7 kB / 0.8122 GB, free: 311.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/1.34, allocations: 0.7097 MB / 0.8129 GB, free: 311.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.34, allocations: 0 / 0.8129 GB, free: 311.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001494/1.342, allocations: 0.8111 MB / 0.8137 GB, free: 311 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/1.342, allocations: 8.906 kB / 0.8137 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/1.342, allocations: 7.656 kB / 0.8137 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/1.343, allocations: 149.2 kB / 0.8138 GB, free: 310.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006636/1.343, allocations: 116.5 kB / 0.8139 GB, free: 310.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/1.345, allocations: 3.662 MB / 0.8175 GB, free: 307.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/1.346, allocations: 39.88 kB / 0.8175 GB, free: 307.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.559e-05/1.346, allocations: 22.06 kB / 0.8176 GB, free: 307.3 MB / 0.5919 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.0002268/1.346, allocations: 184.3 kB / 0.8177 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-05/1.346, allocations: 43.91 kB / 0.8178 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/1.348, allocations: 1.691 MB / 0.8194 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/1.348, allocations: 17.81 kB / 0.8195 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/1.348, allocations: 0 / 0.8195 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001619/1.35, allocations: 1.248 MB / 0.8207 GB, free: 305.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/1.353, allocations: 1.728 MB / 0.8224 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/1.353, allocations: 7.562 kB / 0.8224 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/1.353, allocations: 73.09 kB / 0.8224 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006613/1.354, allocations: 260.7 kB / 0.8227 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/1.354, allocations: 11.81 kB / 0.8227 GB, free: 304.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000786/1.355, allocations: 1.773 MB / 0.8244 GB, free: 302.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.355, allocations: 0.5469 kB / 0.8244 GB, free: 302.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/1.357, allocations: 1.468 MB / 0.8259 GB, free: 301.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.408e-05/1.357, allocations: 118.5 kB / 0.826 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/1.357, allocations: 12.12 kB / 0.826 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/1.357, allocations: 34.42 kB / 0.826 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/1.357, allocations: 43.11 kB / 0.8261 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/1.357, allocations: 14.56 kB / 0.8261 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002543/1.357, allocations: 219.4 kB / 0.8263 GB, free: 301.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.357, allocations: 0 / 0.8263 GB, free: 301.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006104/1.364, allocations: 1.981 MB / 0.8282 GB, free: 301.5 MB / 0.5919 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.009427/1.373, allocations: 2.823 MB / 0.831 GB, free: 301.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002239/1.375, allocations: 0.8771 MB / 0.8318 GB, free: 300.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.375, allocations: 2.031 kB / 0.8318 GB, free: 300.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006809/1.376, allocations: 431.8 kB / 0.8322 GB, free: 300.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/1.378, allocations: 382.1 kB / 0.8326 GB, free: 300.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/1.38, allocations: 1.382 MB / 0.834 GB, free: 299.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/1.38, allocations: 0.8477 MB / 0.8348 GB, free: 298.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003543/1.38, allocations: 97.28 kB / 0.8349 GB, free: 298.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.213e-05/1.381, allocations: 38.62 kB / 0.8349 GB, free: 298.6 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/1.381, allocations: 0 / 0.8349 GB, free: 298.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.06978/1.45, allocations: 70.97 MB / 0.9042 GB, free: 228.6 MB / 0.5919 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)