Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",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.005771/0.005771, allocations: 99.56 kB / 15.73 MB, free: 6.422 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.001204/0.001205, allocations: 195.3 kB / 16.67 MB, free: 6.34 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.54/1.54, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04584/0.04584, allocations: 9.104 MB / 279 MB, free: 12.04 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.001536/0.001536, allocations: 68.45 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.344, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1502/0.4943, allocations: 128.1 MB / 0.5501 GB, free: 216 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.5147/1.009, allocations: 110.1 MB / 0.6576 GB, free: 320 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007591/1.01, allocations: 12.59 kB / 0.6576 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004002/1.014, allocations: 1.279 MB / 0.6589 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004245/1.018, allocations: 1.543 MB / 0.6604 GB, free: 260 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.09716/1.115, allocations: 28.69 MB / 0.6884 GB, free: 8.121 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002289/1.118, allocations: 1.327 MB / 0.6897 GB, free: 7.152 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/1.118, allocations: 130.9 kB / 0.6898 GB, free: 7.051 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01773/1.136, allocations: 8.638 MB / 0.6982 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000614/1.136, allocations: 366.8 kB / 0.6986 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.468e-05/1.136, allocations: 40 kB / 0.6986 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07445/1.211, allocations: 33.66 MB / 0.7315 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003869/1.211, allocations: 121.8 kB / 0.7316 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007134/1.212, allocations: 304.8 kB / 0.7319 GB, free: 1.859 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05801/1.27, allocations: 14.13 MB / 0.7457 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/1.27, allocations: 3.938 kB / 0.7457 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.003e-06/1.27, allocations: 0 / 0.7457 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.09e-05/1.27, allocations: 0 / 0.7457 GB, free: 4.805 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.007176/1.277, allocations: 2.56 MB / 0.7482 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/1.277, allocations: 12.03 kB / 0.7482 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.8e-05/1.278, allocations: 86.52 kB / 0.7483 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006118/1.278, allocations: 83.39 kB / 0.7484 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004983/1.279, allocations: 342.7 kB / 0.7487 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/1.279, allocations: 32.66 kB / 0.7487 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.177e-05/1.279, allocations: 32 kB / 0.7488 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/1.28, allocations: 0.604 MB / 0.7494 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/1.28, allocations: 3.984 kB / 0.7494 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/1.28, allocations: 12 kB / 0.7494 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/1.28, allocations: 28.92 kB / 0.7494 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/1.282, allocations: 0.5442 MB / 0.7499 GB, free: 388 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003037/1.285, allocations: 2.503 MB / 0.7524 GB, free: 13.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/1.286, allocations: 0.4949 MB / 0.7529 GB, free: 13.17 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/1.287, allocations: 334.8 kB / 0.7532 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5201/1.807, allocations: 139 MB / 0.8889 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/1.807, allocations: 33.22 kB / 0.8889 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.927e-06/1.807, allocations: 0 / 0.8889 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006622/1.813, allocations: 2.343 MB / 0.8912 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/1.813, allocations: 60.92 kB / 0.8913 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/1.814, allocations: 260.6 kB / 0.8915 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/1.814, allocations: 29.7 kB / 0.8916 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/1.814, allocations: 193.9 kB / 0.8918 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/1.814, allocations: 252.5 kB / 0.892 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/1.814, allocations: 106.2 kB / 0.8921 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.881e-05/1.814, allocations: 359.5 kB / 0.8924 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004799/1.815, allocations: 271 kB / 0.8927 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005384/1.815, allocations: 402.3 kB / 0.8931 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/1.816, allocations: 0.7087 MB / 0.8938 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/1.816, allocations: 7.938 kB / 0.8938 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001346/1.818, allocations: 0.7955 MB / 0.8946 GB, free: 218 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/1.818, allocations: 7.938 kB / 0.8946 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.818, allocations: 4 kB / 0.8946 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/1.818, allocations: 62.23 kB / 0.8946 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/1.819, allocations: 128.6 kB / 0.8948 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06663/1.885, allocations: 19.86 MB / 0.9141 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/1.886, allocations: 39.97 kB / 0.9142 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.152e-05/1.886, allocations: 16 kB / 0.9142 GB, free: 197.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0003365/1.886, allocations: 192.4 kB / 0.9144 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/1.887, allocations: 39.53 kB / 0.9144 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/1.888, allocations: 1.588 MB / 0.916 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/1.888, allocations: 11.83 kB / 0.916 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/1.888, allocations: 4 kB / 0.916 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001218/1.89, allocations: 1.172 MB / 0.9171 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/1.892, allocations: 1.63 MB / 0.9187 GB, free: 192.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/1.892, allocations: 3.984 kB / 0.9187 GB, free: 192.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003231/1.892, allocations: 75.89 kB / 0.9188 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002551/1.892, allocations: 113.5 kB / 0.9189 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/1.892, allocations: 8 kB / 0.9189 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009714/1.893, allocations: 1.993 MB / 0.9209 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.893, allocations: 4 kB / 0.9209 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/1.895, allocations: 1.262 MB / 0.9221 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/1.895, allocations: 123.7 kB / 0.9222 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.294e-05/1.895, allocations: 4 kB / 0.9222 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/1.896, allocations: 31.97 kB / 0.9222 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/1.896, allocations: 47.94 kB / 0.9223 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/1.896, allocations: 12 kB / 0.9223 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002262/1.896, allocations: 243 kB / 0.9225 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/1.896, allocations: 0 / 0.9225 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01051/1.906, allocations: 3.515 MB / 0.926 GB, free: 185.4 MB / 0.6075 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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.0204/1.927, allocations: 6.209 MB / 0.932 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002161/1.929, allocations: 0.9934 MB / 0.933 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/1.929, allocations: 192 / 0.933 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008069/1.93, allocations: 0.5068 MB / 0.9335 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/1.932, allocations: 395 kB / 0.9339 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/1.945, allocations: 6.299 MB / 0.94 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/1.945, allocations: 0.8563 MB / 0.9409 GB, free: 170.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000441/1.945, allocations: 144.5 kB / 0.941 GB, free: 170.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/1.946, allocations: 171.4 kB / 0.9412 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of SimCode: time 6.41e-07/1.946, allocations: 0 / 0.9412 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2002/2.146, allocations: 132.8 MB / 1.071 GB, free: 37.14 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.04/19.19, allocations: 27.7 kB / 1.071 GB, free: 37.11 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)