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.0009465/0.0009466, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.007148/0.007148, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.744/1.744, allocations: 205.4 MB / 222.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04266/0.04266, allocations: 9.066 MB / 279.8 MB, free: 12.38 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.0005593/0.0005597, allocations: 16.22 kB / 339.7 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1217, allocations: 49.19 MB / 388.9 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.4163/0.5381, allocations: 142.3 MB / 0.5187 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3739/0.912, allocations: 98.1 MB / 0.6146 GB, free: 1.879 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007152/0.9128, allocations: 6.969 kB / 0.6146 GB, free: 1.879 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003443/0.9162, allocations: 1.167 MB / 0.6157 GB, free: 1.875 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00397/0.9202, allocations: 1.468 MB / 0.6171 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07988/1, allocations: 25.16 MB / 0.6417 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002987/1.003, allocations: 1.836 MB / 0.6435 GB, free: 196 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/1.003, allocations: 99.94 kB / 0.6436 GB, free: 172 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01719/1.021, allocations: 9.393 MB / 0.6528 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/1.021, allocations: 383.3 kB / 0.6531 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/1.021, allocations: 21 kB / 0.6532 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05365/1.075, allocations: 26.55 MB / 0.6791 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003043/1.075, allocations: 101.7 kB / 0.6792 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005986/1.076, allocations: 308 kB / 0.6795 GB, free: 13.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04187/1.118, allocations: 11.47 MB / 0.6907 GB, free: 4.965 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/1.118, allocations: 0 / 0.6907 GB, free: 4.965 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.384e-06/1.118, allocations: 1.969 kB / 0.6907 GB, free: 4.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.734e-05/1.118, allocations: 0 / 0.6907 GB, free: 4.965 MB / 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.006038/1.124, allocations: 2.067 MB / 0.6927 GB, free: 2.941 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/1.124, allocations: 12.03 kB / 0.6927 GB, free: 2.93 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00061/1.125, allocations: 79.31 kB / 0.6928 GB, free: 2.852 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004732/1.125, allocations: 328.7 kB / 0.6931 GB, free: 2.539 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/1.125, allocations: 30.28 kB / 0.6931 GB, free: 2.523 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.304e-05/1.125, allocations: 35.19 kB / 0.6932 GB, free: 2.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/1.126, allocations: 0.5936 MB / 0.6937 GB, free: 2.074 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/1.126, allocations: 0 / 0.6937 GB, free: 2.074 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/1.127, allocations: 13.94 kB / 0.6937 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/1.127, allocations: 20.64 kB / 0.6938 GB, free: 2.055 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/1.128, allocations: 0.5409 MB / 0.6943 GB, free: 1.68 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002653/1.13, allocations: 2.495 MB / 0.6967 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/1.132, allocations: 0.5143 MB / 0.6972 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/1.132, allocations: 345.2 kB / 0.6976 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3751/1.507, allocations: 111 MB / 0.806 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/1.507, allocations: 36.77 kB / 0.806 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.747e-06/1.507, allocations: 4.25 kB / 0.806 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00745/1.515, allocations: 2.711 MB / 0.8086 GB, free: 289.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/1.515, allocations: 58.41 kB / 0.8087 GB, free: 289.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/1.515, allocations: 260 kB / 0.8089 GB, free: 289 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/1.515, allocations: 33.36 kB / 0.809 GB, free: 289 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/1.515, allocations: 184.2 kB / 0.8092 GB, free: 288.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/1.516, allocations: 271.7 kB / 0.8094 GB, free: 288.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/1.516, allocations: 62.91 kB / 0.8095 GB, free: 288.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001096/1.516, allocations: 357.4 kB / 0.8098 GB, free: 288.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006831/1.517, allocations: 290.4 kB / 0.8101 GB, free: 288.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007378/1.517, allocations: 419.5 kB / 0.8105 GB, free: 288 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/1.519, allocations: 0.7366 MB / 0.8112 GB, free: 287.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/1.519, allocations: 1.625 kB / 0.8112 GB, free: 287.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001723/1.521, allocations: 0.84 MB / 0.812 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/1.521, allocations: 5.531 kB / 0.812 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.521, allocations: 4.219 kB / 0.812 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008514/1.522, allocations: 157.2 kB / 0.8122 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006004/1.522, allocations: 131.5 kB / 0.8123 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/1.524, allocations: 3.645 MB / 0.8159 GB, free: 283.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004973/1.525, allocations: 51.33 kB / 0.8159 GB, free: 283.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.113e-05/1.525, allocations: 22.94 kB / 0.816 GB, free: 283.5 MB / 0.5762 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.0003128/1.525, allocations: 183.7 kB / 0.8161 GB, free: 283.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/1.525, allocations: 48.56 kB / 0.8162 GB, free: 283.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00228/1.527, allocations: 1.707 MB / 0.8178 GB, free: 282.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/1.527, allocations: 16.17 kB / 0.8179 GB, free: 282.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/1.527, allocations: 0 / 0.8179 GB, free: 282.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001461/1.529, allocations: 1.274 MB / 0.8191 GB, free: 281.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/1.531, allocations: 1.756 MB / 0.8208 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/1.531, allocations: 0 / 0.8208 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/1.532, allocations: 82.19 kB / 0.8209 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006811/1.532, allocations: 259.4 kB / 0.8211 GB, free: 280.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/1.533, allocations: 15.5 kB / 0.8212 GB, free: 280.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008584/1.533, allocations: 1.773 MB / 0.8229 GB, free: 278.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.533, allocations: 0 / 0.8229 GB, free: 278.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/1.535, allocations: 1.498 MB / 0.8243 GB, free: 278.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/1.536, allocations: 138.5 kB / 0.8245 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.841e-05/1.536, allocations: 13.34 kB / 0.8245 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/1.536, allocations: 44.3 kB / 0.8245 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/1.536, allocations: 49.42 kB / 0.8246 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/1.536, allocations: 11.84 kB / 0.8246 GB, free: 278 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000187/1.536, allocations: 225 kB / 0.8248 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/1.536, allocations: 0 / 0.8248 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005431/1.542, allocations: 1.973 MB / 0.8267 GB, free: 277.7 MB / 0.5762 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.01114/1.553, allocations: 2.803 MB / 0.8295 GB, free: 277.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002119/1.555, allocations: 0.8946 MB / 0.8303 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/1.555, allocations: 0 / 0.8303 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000789/1.556, allocations: 451.2 kB / 0.8308 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/1.558, allocations: 383.2 kB / 0.8311 GB, free: 276.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/1.56, allocations: 1.455 MB / 0.8326 GB, free: 275.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/1.56, allocations: 0.849 MB / 0.8334 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004161/1.561, allocations: 83.75 kB / 0.8335 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-05/1.561, allocations: 36.72 kB / 0.8335 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/1.561, allocations: 0 / 0.8335 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.0819/1.643, allocations: 70.91 MB / 0.9028 GB, free: 204.6 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: