Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, 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.001443/0.001444, allocations: 194.6 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.244/1.244, allocations: 205.1 MB / 222 MB, free: 4.984 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04257/0.04257, allocations: 9.081 MB / 278.4 MB, free: 12.63 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.001225/0.001226, allocations: 63.91 kB / 337.3 MB, free: 25.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0664/0.06764, allocations: 48.17 MB / 385.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.2631/0.3307, allocations: 130.4 MB / 0.5038 GB, free: 4.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3098/0.6406, allocations: 112.8 MB / 0.614 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005893/0.6412, allocations: 7.594 kB / 0.614 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.644, allocations: 1.17 MB / 0.6151 GB, free: 1.098 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002881/0.6469, allocations: 1.472 MB / 0.6166 GB, free: 1.082 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0633/0.7102, allocations: 24.93 MB / 0.6409 GB, free: 15.99 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001905/0.7121, allocations: 1.823 MB / 0.6427 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.7124, allocations: 100.7 kB / 0.6428 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01339/0.7258, allocations: 8.392 MB / 0.651 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004742/0.7263, allocations: 393.9 kB / 0.6513 GB, free: 12.73 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.522e-05/0.7263, allocations: 20.31 kB / 0.6514 GB, free: 12.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05133/0.7777, allocations: 31.06 MB / 0.6817 GB, free: 8.016 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.7779, allocations: 98.94 kB / 0.6818 GB, free: 7.957 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005799/0.7785, allocations: 279.9 kB / 0.6821 GB, free: 7.742 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03887/0.8174, allocations: 13.64 MB / 0.6954 GB, free: 12.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.8174, allocations: 3.984 kB / 0.6954 GB, free: 12.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.8174, allocations: 0 / 0.6954 GB, free: 12.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.8175, allocations: 4 kB / 0.6954 GB, free: 12.18 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.005921/0.8234, allocations: 2.569 MB / 0.6979 GB, free: 9.562 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.8234, allocations: 15.59 kB / 0.6979 GB, free: 9.551 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005887/0.824, allocations: 87.33 kB / 0.698 GB, free: 9.465 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.8244, allocations: 340.5 kB / 0.6983 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.8245, allocations: 28.66 kB / 0.6983 GB, free: 9.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.8245, allocations: 35.98 kB / 0.6984 GB, free: 9.035 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.8258, allocations: 0.597 MB / 0.699 GB, free: 8.426 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.8258, allocations: 0 / 0.699 GB, free: 8.426 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.8258, allocations: 16 kB / 0.699 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.8259, allocations: 18.81 kB / 0.699 GB, free: 8.395 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.8271, allocations: 0.5519 MB / 0.6995 GB, free: 7.848 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.8297, allocations: 2.549 MB / 0.702 GB, free: 5.078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.8308, allocations: 0.5121 MB / 0.7025 GB, free: 4.559 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.8313, allocations: 337.9 kB / 0.7028 GB, free: 4.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3672/1.199, allocations: 139 MB / 0.8386 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/1.199, allocations: 40.31 kB / 0.8386 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.655e-06/1.199, allocations: 0 / 0.8386 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00532/1.204, allocations: 2.329 MB / 0.8409 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/1.204, allocations: 55.16 kB / 0.8409 GB, free: 252.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/1.204, allocations: 253.1 kB / 0.8412 GB, free: 252.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/1.204, allocations: 33.55 kB / 0.8412 GB, free: 252.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.568e-05/1.204, allocations: 186.2 kB / 0.8414 GB, free: 252 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/1.204, allocations: 265 kB / 0.8416 GB, free: 251.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/1.205, allocations: 104.4 kB / 0.8417 GB, free: 251.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.676e-05/1.205, allocations: 358.7 kB / 0.8421 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/1.205, allocations: 267 kB / 0.8423 GB, free: 251.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/1.206, allocations: 399 kB / 0.8427 GB, free: 251 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009163/1.207, allocations: 0.6955 MB / 0.8434 GB, free: 250.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.207, allocations: 3.562 kB / 0.8434 GB, free: 250.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001272/1.208, allocations: 0.7921 MB / 0.8442 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.208, allocations: 7.938 kB / 0.8442 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/1.208, allocations: 3.969 kB / 0.8442 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/1.208, allocations: 61.45 kB / 0.8442 GB, free: 250 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/1.208, allocations: 98.59 kB / 0.8443 GB, free: 250 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09034/1.299, allocations: 22.63 MB / 0.8664 GB, free: 229 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/1.299, allocations: 47.88 kB / 0.8665 GB, free: 229 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/1.299, allocations: 20 kB / 0.8665 GB, free: 229 MB / 0.5762 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.0002655/1.3, allocations: 189.7 kB / 0.8667 GB, free: 228.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/1.3, allocations: 43.47 kB / 0.8667 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/1.301, allocations: 1.552 MB / 0.8682 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/1.301, allocations: 11.3 kB / 0.8682 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/1.301, allocations: 4 kB / 0.8682 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001085/1.302, allocations: 1.137 MB / 0.8694 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/1.304, allocations: 1.596 MB / 0.8709 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/1.304, allocations: 3.938 kB / 0.8709 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/1.305, allocations: 79.88 kB / 0.871 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001966/1.305, allocations: 53.58 kB / 0.871 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/1.305, allocations: 4 kB / 0.871 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006702/1.306, allocations: 1.329 MB / 0.8723 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.306, allocations: 4.156 kB / 0.8723 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/1.307, allocations: 1.172 MB / 0.8735 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.647e-05/1.307, allocations: 112.7 kB / 0.8736 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.892e-05/1.307, allocations: 11.94 kB / 0.8736 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/1.308, allocations: 43.92 kB / 0.8737 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.599e-05/1.308, allocations: 47.81 kB / 0.8737 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/1.308, allocations: 16 kB / 0.8737 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000186/1.308, allocations: 239 kB / 0.8739 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.308, allocations: 0 / 0.8739 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006608/1.315, allocations: 3.194 MB / 0.8771 GB, free: 218.2 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.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.01308/1.328, allocations: 4.109 MB / 0.8811 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001528/1.329, allocations: 0.9567 MB / 0.882 GB, free: 213.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.329, allocations: 0 / 0.882 GB, free: 213.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007098/1.33, allocations: 499.3 kB / 0.8825 GB, free: 213 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/1.332, allocations: 392 kB / 0.8829 GB, free: 212.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/1.333, allocations: 1.352 MB / 0.8842 GB, free: 211.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/1.333, allocations: 0.8566 MB / 0.885 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000422/1.334, allocations: 165.3 kB / 0.8852 GB, free: 210.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.509e-05/1.334, allocations: 39.44 kB / 0.8852 GB, free: 210.2 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/1.334, allocations: 0 / 0.8852 GB, free: 210.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.1126/1.446, allocations: 117.6 MB / 1 GB, free: 92.48 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)