Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001053/0.001053, allocations: 190.4 kB / 16.13 MB, free: 6.66 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.24/1.24, allocations: 205.1 MB / 222 MB, free: 4.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04318/0.04318, allocations: 9.087 MB / 278.4 MB, free: 12.27 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.001201/0.001201, allocations: 59.91 kB / 337.3 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.08338, allocations: 48.17 MB / 385.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.2871/0.3705, allocations: 129.4 MB / 0.5028 GB, free: 5.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3034/0.6739, allocations: 111.3 MB / 0.6114 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005533/0.6745, allocations: 7.031 kB / 0.6115 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.6768, allocations: 0.8518 MB / 0.6123 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00194/0.6788, allocations: 0.9438 MB / 0.6132 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05645/0.7352, allocations: 24.52 MB / 0.6372 GB, free: 408 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.7369, allocations: 1.795 MB / 0.6389 GB, free: 104 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.7372, allocations: 95.58 kB / 0.639 GB, free: 80 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01677/0.7539, allocations: 11.31 MB / 0.65 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005263/0.7545, allocations: 387 kB / 0.6504 GB, free: 12.42 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.363e-05/0.7546, allocations: 20.38 kB / 0.6504 GB, free: 12.42 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05012/0.8047, allocations: 29.53 MB / 0.6793 GB, free: 7.582 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.805, allocations: 103.6 kB / 0.6794 GB, free: 7.512 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005635/0.8055, allocations: 282.4 kB / 0.6796 GB, free: 7.297 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03977/0.8453, allocations: 13.69 MB / 0.693 GB, free: 12.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.8454, allocations: 0 / 0.693 GB, free: 12.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.8454, allocations: 0 / 0.693 GB, free: 12.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.8454, allocations: 0 / 0.693 GB, free: 12.66 MB / 494.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.005736/0.8511, allocations: 2.569 MB / 0.6955 GB, free: 10.05 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.8512, allocations: 12.03 kB / 0.6955 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006111/0.8518, allocations: 83.39 kB / 0.6956 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003897/0.8522, allocations: 343 kB / 0.6959 GB, free: 9.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.8522, allocations: 28.66 kB / 0.696 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.8523, allocations: 32 kB / 0.696 GB, free: 9.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.8535, allocations: 0.6002 MB / 0.6966 GB, free: 8.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.8535, allocations: 0 / 0.6966 GB, free: 8.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.8536, allocations: 12 kB / 0.6966 GB, free: 8.898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.8536, allocations: 21.86 kB / 0.6966 GB, free: 8.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.8552, allocations: 0.5481 MB / 0.6972 GB, free: 8.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002293/0.8575, allocations: 2.557 MB / 0.6996 GB, free: 5.562 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.8586, allocations: 0.4928 MB / 0.7001 GB, free: 5.062 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005224/0.8591, allocations: 346.2 kB / 0.7005 GB, free: 4.719 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.395/1.254, allocations: 139 MB / 0.8362 GB, free: 283.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/1.254, allocations: 37.16 kB / 0.8362 GB, free: 283.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.376e-06/1.254, allocations: 3.391 kB / 0.8362 GB, free: 283.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005915/1.26, allocations: 2.328 MB / 0.8385 GB, free: 282.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/1.26, allocations: 58.56 kB / 0.8385 GB, free: 282.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/1.26, allocations: 252 kB / 0.8388 GB, free: 282.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/1.261, allocations: 33.7 kB / 0.8388 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/1.261, allocations: 187.2 kB / 0.839 GB, free: 282 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/1.261, allocations: 277.4 kB / 0.8393 GB, free: 281.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/1.261, allocations: 92.89 kB / 0.8393 GB, free: 281.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.379e-05/1.261, allocations: 359.4 kB / 0.8397 GB, free: 281.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/1.261, allocations: 269.8 kB / 0.8399 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004753/1.262, allocations: 394.7 kB / 0.8403 GB, free: 280.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009282/1.263, allocations: 0.6878 MB / 0.841 GB, free: 280.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/1.263, allocations: 7.953 kB / 0.841 GB, free: 280.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001307/1.264, allocations: 0.7937 MB / 0.8418 GB, free: 280 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/1.264, allocations: 3.938 kB / 0.8418 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/1.264, allocations: 3.969 kB / 0.8418 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/1.264, allocations: 67.3 kB / 0.8418 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/1.265, allocations: 100.1 kB / 0.8419 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08969/1.355, allocations: 22.66 MB / 0.8641 GB, free: 261.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/1.355, allocations: 47.97 kB / 0.8641 GB, free: 261.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/1.355, allocations: 27.92 kB / 0.8641 GB, free: 261.5 MB / 0.5919 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.0002314/1.355, allocations: 178.6 kB / 0.8643 GB, free: 261.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/1.355, allocations: 43.44 kB / 0.8643 GB, free: 261.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/1.357, allocations: 1.556 MB / 0.8659 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/1.357, allocations: 18.75 kB / 0.8659 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/1.357, allocations: 3.938 kB / 0.8659 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001195/1.358, allocations: 1.137 MB / 0.867 GB, free: 258.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/1.361, allocations: 1.594 MB / 0.8686 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/1.361, allocations: 0 / 0.8686 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/1.361, allocations: 88.66 kB / 0.8686 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/1.361, allocations: 40.81 kB / 0.8687 GB, free: 256.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/1.361, allocations: 11.94 kB / 0.8687 GB, free: 256.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007696/1.362, allocations: 1.321 MB / 0.87 GB, free: 255.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/1.362, allocations: 0 / 0.87 GB, free: 255.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/1.364, allocations: 1.184 MB / 0.8711 GB, free: 253.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/1.364, allocations: 112.7 kB / 0.8712 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6e-05/1.364, allocations: 15.84 kB / 0.8713 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000338/1.364, allocations: 36.03 kB / 0.8713 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.364, allocations: 39.94 kB / 0.8713 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/1.364, allocations: 19.98 kB / 0.8714 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001972/1.365, allocations: 235.1 kB / 0.8716 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.41e-07/1.365, allocations: 0 / 0.8716 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007319/1.372, allocations: 3.193 MB / 0.8747 GB, free: 250.7 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.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.01401/1.386, allocations: 4.12 MB / 0.8787 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001584/1.387, allocations: 0.9489 MB / 0.8796 GB, free: 246.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.388, allocations: 8.062 kB / 0.8797 GB, free: 246.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007138/1.388, allocations: 491.3 kB / 0.8801 GB, free: 245.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/1.39, allocations: 388.6 kB / 0.8805 GB, free: 245.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/1.392, allocations: 1.353 MB / 0.8818 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/1.392, allocations: 0.8525 MB / 0.8826 GB, free: 243 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004003/1.392, allocations: 160.6 kB / 0.8828 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-05/1.392, allocations: 43.42 kB / 0.8828 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of SimCode: time 3.41e-07/1.392, allocations: 0 / 0.8828 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.1124/1.505, allocations: 117.4 MB / 0.9975 GB, free: 125.2 MB / 0.5919 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)