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.001087/0.001087, 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.001107/0.001107, allocations: 187.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.284/1.284, allocations: 205.1 MB / 222.1 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04145/0.04145, allocations: 9.088 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.001227/0.001227, allocations: 67.88 kB / 337.5 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07161/0.07284, allocations: 48.16 MB / 385.7 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.2599/0.3328, allocations: 128.1 MB / 0.5018 GB, free: 6.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3026/0.6354, allocations: 110.8 MB / 0.6099 GB, free: 260 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.6359, allocations: 8.625 kB / 0.6099 GB, free: 260 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002696/0.6387, allocations: 1.276 MB / 0.6112 GB, free: 252 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003033/0.6418, allocations: 1.561 MB / 0.6127 GB, free: 236 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06051/0.7023, allocations: 26.49 MB / 0.6386 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.704, allocations: 1.404 MB / 0.6399 GB, free: 15.43 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.7043, allocations: 128.4 kB / 0.6401 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01243/0.7167, allocations: 9.053 MB / 0.6489 GB, free: 12.76 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004153/0.7171, allocations: 393.2 kB / 0.6493 GB, free: 12.63 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.833e-05/0.7172, allocations: 40 kB / 0.6493 GB, free: 12.59 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05025/0.7675, allocations: 34.22 MB / 0.6827 GB, free: 4.605 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.7677, allocations: 120.4 kB / 0.6829 GB, free: 4.496 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005458/0.7683, allocations: 310.3 kB / 0.6831 GB, free: 4.195 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.036/0.8043, allocations: 14.1 MB / 0.6969 GB, free: 7.188 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8043, allocations: 0 / 0.6969 GB, free: 7.188 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.8043, allocations: 0 / 0.6969 GB, free: 7.188 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.8044, allocations: 0 / 0.6969 GB, free: 7.188 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.00544/0.8098, allocations: 2.574 MB / 0.6994 GB, free: 4.566 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.8099, allocations: 8.031 kB / 0.6994 GB, free: 4.559 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006075/0.8105, allocations: 79.41 kB / 0.6995 GB, free: 4.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.8109, allocations: 339 kB / 0.6998 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.8109, allocations: 28.66 kB / 0.6999 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.811, allocations: 39.98 kB / 0.6999 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.8122, allocations: 0.5945 MB / 0.7005 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.8122, allocations: 4 kB / 0.7005 GB, free: 3.438 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.8122, allocations: 16 kB / 0.7005 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.8123, allocations: 18.11 kB / 0.7005 GB, free: 3.406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.8134, allocations: 0.5442 MB / 0.7011 GB, free: 2.867 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.8158, allocations: 2.556 MB / 0.7035 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.8169, allocations: 0.5007 MB / 0.704 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.8174, allocations: 334.3 kB / 0.7044 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3817/1.199, allocations: 139 MB / 0.8401 GB, free: 279.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/1.199, allocations: 38.81 kB / 0.8401 GB, free: 279.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 2.986e-06/1.199, allocations: 0 / 0.8401 GB, free: 279.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.00517/1.204, allocations: 2.33 MB / 0.8424 GB, free: 278.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/1.204, allocations: 63.09 kB / 0.8425 GB, free: 278.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/1.205, allocations: 255.4 kB / 0.8427 GB, free: 278.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/1.205, allocations: 29.7 kB / 0.8427 GB, free: 278.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.281e-05/1.205, allocations: 186.7 kB / 0.8429 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.205, allocations: 272.1 kB / 0.8432 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/1.205, allocations: 95.52 kB / 0.8433 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.23e-05/1.205, allocations: 354.7 kB / 0.8436 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/1.205, allocations: 269.5 kB / 0.8438 GB, free: 277.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/1.206, allocations: 395.5 kB / 0.8442 GB, free: 277 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008411/1.207, allocations: 0.7026 MB / 0.8449 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/1.207, allocations: 0 / 0.8449 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001147/1.208, allocations: 0.7892 MB / 0.8457 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/1.208, allocations: 10.84 kB / 0.8457 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.208, allocations: 8.047 kB / 0.8457 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002148/1.208, allocations: 68.55 kB / 0.8458 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003617/1.209, allocations: 94.69 kB / 0.8459 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0909/1.299, allocations: 22.92 MB / 0.8682 GB, free: 256 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/1.3, allocations: 55.86 kB / 0.8683 GB, free: 255.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/1.3, allocations: 19.94 kB / 0.8683 GB, free: 255.9 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.0002186/1.3, allocations: 184.2 kB / 0.8685 GB, free: 255.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/1.3, allocations: 39.53 kB / 0.8685 GB, free: 255.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/1.302, allocations: 1.555 MB / 0.87 GB, free: 254 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/1.302, allocations: 14.27 kB / 0.8701 GB, free: 254 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/1.302, allocations: 0 / 0.8701 GB, free: 254 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001063/1.303, allocations: 1.145 MB / 0.8712 GB, free: 252.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/1.305, allocations: 1.587 MB / 0.8727 GB, free: 251.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/1.305, allocations: 3.188 kB / 0.8727 GB, free: 251.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/1.305, allocations: 83.88 kB / 0.8728 GB, free: 251.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001952/1.305, allocations: 40.84 kB / 0.8729 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/1.305, allocations: 12 kB / 0.8729 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007101/1.306, allocations: 1.432 MB / 0.8743 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.306, allocations: 0 / 0.8743 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/1.308, allocations: 1.176 MB / 0.8754 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.62e-05/1.308, allocations: 116.6 kB / 0.8755 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/1.308, allocations: 11.94 kB / 0.8755 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/1.308, allocations: 39.94 kB / 0.8756 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/1.308, allocations: 43.94 kB / 0.8756 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/1.308, allocations: 15.98 kB / 0.8756 GB, free: 248 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001676/1.308, allocations: 235.1 kB / 0.8759 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.41e-07/1.308, allocations: 4 kB / 0.8759 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006429/1.315, allocations: 3.19 MB / 0.879 GB, free: 245 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.01188/1.327, allocations: 4.113 MB / 0.883 GB, free: 241.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001701/1.328, allocations: 0.9684 MB / 0.8839 GB, free: 240.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.328, allocations: 192 / 0.8839 GB, free: 240.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006829/1.329, allocations: 0.4953 MB / 0.8844 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/1.331, allocations: 383.7 kB / 0.8848 GB, free: 239.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/1.332, allocations: 1.355 MB / 0.8861 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/1.332, allocations: 0.8565 MB / 0.8869 GB, free: 237.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003839/1.333, allocations: 161.6 kB / 0.8871 GB, free: 237.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-05/1.333, allocations: 43.44 kB / 0.8871 GB, free: 237 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/1.333, allocations: 0 / 0.8871 GB, free: 237 MB / 0.5919 GB Notification: Performance of Templates: time 0.1049/1.438, allocations: 117.7 MB / 1.002 GB, free: 119.2 MB / 0.5919 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)