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.001538/0.001538, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.297/1.297, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04553/0.04553, allocations: 9.097 MB / 278.8 MB, free: 12.16 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.001421/0.001421, allocations: 71.84 kB / 338 MB, free: 25.44 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07058/0.07202, allocations: 48.16 MB / 386.2 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.262/0.334, allocations: 128.6 MB / 0.5028 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3001/0.6342, allocations: 111.1 MB / 0.6112 GB, free: 304 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004548/0.6347, allocations: 10.84 kB / 0.6112 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.6374, allocations: 1.362 MB / 0.6126 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003129/0.6405, allocations: 1.653 MB / 0.6142 GB, free: 276 kB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.06313/0.7037, allocations: 29.34 MB / 0.6428 GB, free: 13.72 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.7053, allocations: 1.403 MB / 0.6442 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.7055, allocations: 128.3 kB / 0.6443 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01304/0.7186, allocations: 8.954 MB / 0.6531 GB, free: 10.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004466/0.7191, allocations: 380 kB / 0.6534 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-05/0.7191, allocations: 44 kB / 0.6535 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05666/0.7758, allocations: 33.48 MB / 0.6862 GB, free: 1.281 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.7761, allocations: 126.9 kB / 0.6863 GB, free: 1.164 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005217/0.7766, allocations: 302 kB / 0.6866 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03786/0.8145, allocations: 14.06 MB / 0.7003 GB, free: 3.902 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8145, allocations: 0 / 0.7003 GB, free: 3.902 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.8145, allocations: 0 / 0.7003 GB, free: 3.902 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.8145, allocations: 0 / 0.7003 GB, free: 3.902 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.006174/0.8207, allocations: 2.573 MB / 0.7028 GB, free: 1.285 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.8208, allocations: 8.031 kB / 0.7028 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007021/0.8215, allocations: 83.39 kB / 0.7029 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.822, allocations: 340.2 kB / 0.7032 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.8221, allocations: 29.78 kB / 0.7033 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.766e-05/0.8221, allocations: 36 kB / 0.7033 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.8235, allocations: 0.6001 MB / 0.7039 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.8235, allocations: 4 kB / 0.7039 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.064e-05/0.8236, allocations: 12 kB / 0.7039 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.8236, allocations: 16.61 kB / 0.7039 GB, free: 124 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.8249, allocations: 0.552 MB / 0.7044 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002714/0.8277, allocations: 2.563 MB / 0.707 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.8289, allocations: 0.5013 MB / 0.7074 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005337/0.8294, allocations: 342.3 kB / 0.7078 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3748/1.204, allocations: 139 MB / 0.8435 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/1.204, allocations: 41.31 kB / 0.8435 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 2.345e-06/1.204, allocations: 0 / 0.8435 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005326/1.21, allocations: 2.332 MB / 0.8458 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.013e-05/1.21, allocations: 63.06 kB / 0.8459 GB, free: 276 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/1.21, allocations: 247.4 kB / 0.8461 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/1.21, allocations: 33.64 kB / 0.8461 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.163e-05/1.21, allocations: 184.3 kB / 0.8463 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/1.21, allocations: 271.6 kB / 0.8466 GB, free: 275.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/1.21, allocations: 99.73 kB / 0.8467 GB, free: 275.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.698e-05/1.21, allocations: 354.7 kB / 0.847 GB, free: 275 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/1.211, allocations: 268.4 kB / 0.8473 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004585/1.211, allocations: 394 kB / 0.8476 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009161/1.212, allocations: 0.6991 MB / 0.8483 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/1.212, allocations: 1.719 kB / 0.8483 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001262/1.213, allocations: 0.79 MB / 0.8491 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/1.213, allocations: 7.938 kB / 0.8491 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/1.213, allocations: 3.969 kB / 0.8491 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/1.214, allocations: 63.55 kB / 0.8492 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/1.214, allocations: 102 kB / 0.8493 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09303/1.307, allocations: 22.93 MB / 0.8716 GB, free: 252.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/1.308, allocations: 33.59 kB / 0.8717 GB, free: 252.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/1.308, allocations: 15.94 kB / 0.8717 GB, free: 252.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.0002125/1.308, allocations: 192 kB / 0.8719 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-05/1.308, allocations: 43.44 kB / 0.8719 GB, free: 252.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/1.31, allocations: 1.545 MB / 0.8734 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.31, allocations: 19.12 kB / 0.8734 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/1.31, allocations: 0 / 0.8734 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/1.311, allocations: 1.148 MB / 0.8746 GB, free: 249.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/1.313, allocations: 1.579 MB / 0.8761 GB, free: 248.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/1.313, allocations: 4 kB / 0.8761 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/1.313, allocations: 83.88 kB / 0.8762 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/1.313, allocations: 44.75 kB / 0.8762 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/1.313, allocations: 12 kB / 0.8762 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006733/1.314, allocations: 1.423 MB / 0.8776 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/1.314, allocations: 0 / 0.8776 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/1.315, allocations: 1.18 MB / 0.8788 GB, free: 245.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/1.315, allocations: 116.6 kB / 0.8789 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/1.315, allocations: 7.906 kB / 0.8789 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/1.316, allocations: 28.47 kB / 0.8789 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/1.316, allocations: 39.94 kB / 0.879 GB, free: 245 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/1.316, allocations: 19.94 kB / 0.879 GB, free: 245 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001816/1.316, allocations: 243.1 kB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/1.316, allocations: 0 / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006115/1.322, allocations: 3.186 MB / 0.8823 GB, free: 242 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.01247/1.335, allocations: 4.113 MB / 0.8863 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001762/1.336, allocations: 0.9722 MB / 0.8873 GB, free: 237.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.336, allocations: 4 kB / 0.8873 GB, free: 237.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007269/1.337, allocations: 495.3 kB / 0.8878 GB, free: 236.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/1.339, allocations: 369.7 kB / 0.8881 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/1.341, allocations: 1.171 MB / 0.8893 GB, free: 235.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/1.341, allocations: 0.8486 MB / 0.8901 GB, free: 234.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003898/1.341, allocations: 164.6 kB / 0.8903 GB, free: 234.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/1.341, allocations: 43.38 kB / 0.8903 GB, free: 234.2 MB / 0.5919 GB Notification: Performance of SimCode: time 3.4e-07/1.341, allocations: 0 / 0.8903 GB, free: 234.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.1143/1.456, allocations: 117.9 MB / 1.005 GB, free: 116.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)