Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005581/0.005582, allocations: 106.1 kB / 15.73 MB, free: 6 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.001251/0.001251, allocations: 192.2 kB / 16.67 MB, free: 5.922 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.453/1.453, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0461/0.0461, allocations: 9.092 MB / 279 MB, free: 12.06 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.001707/0.001708, allocations: 71.91 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3097, allocations: 48.14 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.151/0.4607, allocations: 128.6 MB / 0.5505 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4224/0.8832, allocations: 111 MB / 0.659 GB, free: 204 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.8844, allocations: 8.062 kB / 0.659 GB, free: 204 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004765/0.8893, allocations: 1.366 MB / 0.6603 GB, free: 192 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004855/0.8942, allocations: 1.658 MB / 0.662 GB, free: 144 kB / 478.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.09492/0.9891, allocations: 29.23 MB / 0.6905 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002088/0.9912, allocations: 1.411 MB / 0.6919 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.9915, allocations: 126.9 kB / 0.692 GB, free: 6.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01735/1.009, allocations: 10.51 MB / 0.7023 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006156/1.01, allocations: 372.5 kB / 0.7026 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.401e-05/1.01, allocations: 44 kB / 0.7027 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06947/1.079, allocations: 34.53 MB / 0.7364 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002868/1.079, allocations: 127.3 kB / 0.7365 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006026/1.08, allocations: 296.9 kB / 0.7368 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04969/1.13, allocations: 13.93 MB / 0.7504 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.13, allocations: 4 kB / 0.7504 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.984e-06/1.13, allocations: 0 / 0.7504 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.134e-05/1.13, allocations: 0 / 0.7504 GB, free: 0.6562 MB / 0.5294 GB 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.007095/1.137, allocations: 2.567 MB / 0.7529 GB, free: 14.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/1.137, allocations: 12.03 kB / 0.7529 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/1.137, allocations: 86.45 kB / 0.753 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006574/1.138, allocations: 83.39 kB / 0.7531 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/1.138, allocations: 343.3 kB / 0.7534 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/1.138, allocations: 28.66 kB / 0.7534 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/1.138, allocations: 39.41 kB / 0.7535 GB, free: 13.42 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/1.14, allocations: 0.6002 MB / 0.754 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/1.14, allocations: 0 / 0.754 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.174e-05/1.14, allocations: 12 kB / 0.7541 GB, free: 12.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/1.14, allocations: 26.48 kB / 0.7541 GB, free: 12.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/1.141, allocations: 0.5442 MB / 0.7546 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002839/1.144, allocations: 2.467 MB / 0.757 GB, free: 9.566 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/1.145, allocations: 490.4 kB / 0.7575 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005717/1.146, allocations: 346.4 kB / 0.7578 GB, free: 8.742 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4238/1.57, allocations: 139 MB / 0.8935 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/1.57, allocations: 43.72 kB / 0.8936 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 5.51e-06/1.57, allocations: 0 / 0.8936 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.006437/1.576, allocations: 2.322 MB / 0.8959 GB, free: 218 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/1.576, allocations: 63.09 kB / 0.8959 GB, free: 218 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/1.577, allocations: 263.8 kB / 0.8962 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/1.577, allocations: 29.7 kB / 0.8962 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/1.577, allocations: 198.2 kB / 0.8964 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/1.577, allocations: 258.2 kB / 0.8966 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/1.577, allocations: 99.02 kB / 0.8967 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.935e-05/1.577, allocations: 350.8 kB / 0.8971 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/1.578, allocations: 279.8 kB / 0.8973 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/1.578, allocations: 394.2 kB / 0.8977 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009656/1.579, allocations: 0.6945 MB / 0.8984 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/1.579, allocations: 3.188 kB / 0.8984 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001293/1.581, allocations: 0.7963 MB / 0.8992 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/1.581, allocations: 13.08 kB / 0.8992 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.581, allocations: 0 / 0.8992 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/1.581, allocations: 57.69 kB / 0.8992 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/1.581, allocations: 149.5 kB / 0.8994 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06634/1.648, allocations: 18.42 MB / 0.9174 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004456/1.648, allocations: 28.03 kB / 0.9174 GB, free: 195.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/1.648, allocations: 20 kB / 0.9174 GB, free: 195.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 3 systems {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): 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.0002576/1.649, allocations: 184.1 kB / 0.9176 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/1.649, allocations: 43.47 kB / 0.9176 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/1.65, allocations: 1.718 MB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/1.65, allocations: 19.81 kB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/1.65, allocations: 3.938 kB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001295/1.652, allocations: 1.289 MB / 0.9206 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/1.654, allocations: 1.749 MB / 0.9223 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/1.654, allocations: 0 / 0.9223 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/1.654, allocations: 79.88 kB / 0.9224 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003087/1.654, allocations: 162.1 kB / 0.9225 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/1.654, allocations: 15.92 kB / 0.9225 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/1.655, allocations: 2.572 MB / 0.925 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.655, allocations: 0 / 0.925 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.657, allocations: 1.37 MB / 0.9264 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/1.657, allocations: 120.5 kB / 0.9265 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/1.657, allocations: 8 kB / 0.9265 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/1.658, allocations: 28.03 kB / 0.9265 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.393e-05/1.658, allocations: 43.88 kB / 0.9266 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/1.658, allocations: 19.98 kB / 0.9266 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000192/1.658, allocations: 219.1 kB / 0.9268 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.658, allocations: 0 / 0.9268 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00908/1.667, allocations: 3.515 MB / 0.9302 GB, free: 182.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01746/1.685, allocations: 6.131 MB / 0.9362 GB, free: 176.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002094/1.687, allocations: 1.053 MB / 0.9372 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/1.687, allocations: 0.6875 kB / 0.9373 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006806/1.687, allocations: 0.5036 MB / 0.9377 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/1.689, allocations: 402.3 kB / 0.9381 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/1.7, allocations: 6.216 MB / 0.9442 GB, free: 168.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/1.7, allocations: 0.8526 MB / 0.945 GB, free: 167.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004314/1.701, allocations: 135.2 kB / 0.9452 GB, free: 167.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/1.701, allocations: 167.4 kB / 0.9453 GB, free: 167 MB / 0.6075 GB Notification: Performance of SimCode: time 6.81e-07/1.701, allocations: 0 / 0.9453 GB, free: 167 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2851/1.986, allocations: 133.4 MB / 1.076 GB, free: 33.46 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.9/18.89, allocations: 7.781 kB / 1.076 GB, free: 33.45 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)