Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001137/0.001137, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.388/1.388, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04215/0.04215, allocations: 9.084 MB / 278.5 MB, free: 12.36 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.001293/0.001293, allocations: 67.89 kB / 337.5 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08686, allocations: 48.17 MB / 385.7 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3558/0.4427, allocations: 195.2 MB / 0.5672 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3523/0.795, allocations: 141.3 MB / 0.7052 GB, free: 1.035 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006974/0.7957, allocations: 11.12 kB / 0.7053 GB, free: 1.027 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002599/0.7984, allocations: 1.273 MB / 0.7065 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00286/0.8012, allocations: 1.535 MB / 0.708 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0912/0.8925, allocations: 34.56 MB / 0.7417 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00256/0.895, allocations: 1.929 MB / 0.7436 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003194/0.8954, allocations: 190.7 kB / 0.7438 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.8969, allocations: 0.8259 MB / 0.7446 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006934/0.8976, allocations: 0.5447 MB / 0.7451 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.973e-05/0.8977, allocations: 60 kB / 0.7452 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07131/0.969, allocations: 43.02 MB / 0.7872 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004009/0.9695, allocations: 175.4 kB / 0.7874 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007723/0.9703, allocations: 422.3 kB / 0.7878 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2923/1.263, allocations: 18.85 MB / 0.8062 GB, free: 51.4 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/1.263, allocations: 1.938 kB / 0.8062 GB, free: 51.4 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/1.263, allocations: 0 / 0.8062 GB, free: 51.4 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.209e-05/1.263, allocations: 1.188 kB / 0.8062 GB, free: 51.4 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.0121/1.275, allocations: 3.347 MB / 0.8095 GB, free: 49.75 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.275, allocations: 11.86 kB / 0.8095 GB, free: 49.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000911/1.276, allocations: 123.8 kB / 0.8096 GB, free: 49.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005575/1.276, allocations: 406.2 kB / 0.81 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/1.276, allocations: 44.56 kB / 0.81 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/1.276, allocations: 44.47 kB / 0.8101 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/1.278, allocations: 0.8185 MB / 0.8109 GB, free: 49.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/1.278, allocations: 8.516 kB / 0.8109 GB, free: 49.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/1.278, allocations: 20.44 kB / 0.8109 GB, free: 49.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/1.278, allocations: 21.86 kB / 0.8109 GB, free: 49.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/1.28, allocations: 0.7526 MB / 0.8117 GB, free: 49.36 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/1.283, allocations: 3.419 MB / 0.815 GB, free: 47.13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/1.285, allocations: 0.6845 MB / 0.8157 GB, free: 47.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006764/1.285, allocations: 481.9 kB / 0.8161 GB, free: 47.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3232/1.608, allocations: 185.3 MB / 0.9971 GB, free: 22.26 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/1.609, allocations: 36.31 kB / 0.9971 GB, free: 22.22 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.785e-06/1.609, allocations: 4 kB / 0.9971 GB, free: 22.22 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.009184/1.618, allocations: 3.415 MB / 1 GB, free: 19.62 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/1.618, allocations: 63.97 kB / 1.001 GB, free: 19.55 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/1.618, allocations: 307.8 kB / 1.001 GB, free: 19.29 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.74e-05/1.618, allocations: 36.58 kB / 1.001 GB, free: 19.26 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/1.618, allocations: 231 kB / 1.001 GB, free: 19.07 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/1.619, allocations: 384.2 kB / 1.001 GB, free: 18.74 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/1.619, allocations: 133.1 kB / 1.002 GB, free: 18.66 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001468/1.619, allocations: 371.8 kB / 1.002 GB, free: 18.31 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006221/1.62, allocations: 400.4 kB / 1.002 GB, free: 18.07 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006688/1.62, allocations: 0.5294 MB / 1.003 GB, free: 17.67 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/1.622, allocations: 0.9749 MB / 1.004 GB, free: 17.03 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.622, allocations: 0 / 1.004 GB, free: 17.03 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001869/1.623, allocations: 1.13 MB / 1.005 GB, free: 16.27 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1.623, allocations: 8 kB / 1.005 GB, free: 16.26 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.623, allocations: 4 kB / 1.005 GB, free: 16.25 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/1.624, allocations: 107 kB / 1.005 GB, free: 16.16 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/1.625, allocations: 211.5 kB / 1.005 GB, free: 15.98 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.368/1.993, allocations: 46.92 MB / 1.051 GB, free: 393.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/1.994, allocations: 73.8 kB / 1.051 GB, free: 393.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-05/1.994, allocations: 22.66 kB / 1.051 GB, free: 393.4 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003949/1.994, allocations: 217.8 kB / 1.051 GB, free: 393.2 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/1.994, allocations: 59.94 kB / 1.051 GB, free: 393.2 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/1.997, allocations: 2.4 MB / 1.054 GB, free: 391.7 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/1.997, allocations: 19.34 kB / 1.054 GB, free: 391.7 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.997, allocations: 0 / 1.054 GB, free: 391.7 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001875/1.999, allocations: 1.645 MB / 1.055 GB, free: 390.7 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/2.002, allocations: 2.459 MB / 1.058 GB, free: 388.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/2.002, allocations: 0 / 1.058 GB, free: 388.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/2.002, allocations: 119.8 kB / 1.058 GB, free: 388.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004638/2.003, allocations: 208.9 kB / 1.058 GB, free: 388 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/2.003, allocations: 12 kB / 1.058 GB, free: 388 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/2.005, allocations: 3.985 MB / 1.062 GB, free: 383.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/2.005, allocations: 2 kB / 1.062 GB, free: 383.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/2.007, allocations: 1.976 MB / 1.064 GB, free: 381.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/2.008, allocations: 135.5 kB / 1.064 GB, free: 381.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/2.008, allocations: 8 kB / 1.064 GB, free: 381.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/2.008, allocations: 63.69 kB / 1.064 GB, free: 381.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/2.008, allocations: 60.47 kB / 1.064 GB, free: 381.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/2.008, allocations: 20.86 kB / 1.064 GB, free: 381.4 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000218/2.009, allocations: 263.1 kB / 1.064 GB, free: 381.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.21e-07/2.009, allocations: 0 / 1.064 GB, free: 381.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01503/2.024, allocations: 4.824 MB / 1.069 GB, free: 377 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03104/2.055, allocations: 5.962 MB / 1.075 GB, free: 371.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003582/2.058, allocations: 1.554 MB / 1.076 GB, free: 370.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/2.058, allocations: 3.281 kB / 1.076 GB, free: 370.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/2.06, allocations: 0.837 MB / 1.077 GB, free: 369.3 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/2.062, allocations: 0.5298 MB / 1.078 GB, free: 368.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/2.065, allocations: 2.044 MB / 1.08 GB, free: 366.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/2.065, allocations: 0.9371 MB / 1.081 GB, free: 365.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005809/2.066, allocations: 176.6 kB / 1.081 GB, free: 365.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/2.066, allocations: 51.44 kB / 1.081 GB, free: 365.6 MB / 0.6856 GB Notification: Performance of SimCode: time 3.21e-07/2.066, allocations: 0 / 1.081 GB, free: 365.6 MB / 0.6856 GB Notification: Performance of Templates: time 0.1781/2.244, allocations: 186.8 MB / 1.263 GB, free: 178.5 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)