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.006785/0.006785, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001411/0.001411, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.48/1.48, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04715/0.04715, allocations: 9.1 MB / 279 MB, free: 12.09 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.001625/0.001626, allocations: 71.89 kB / 387 MB, free: 8.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2727, allocations: 48.16 MB / 435.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1382/0.4109, allocations: 128.1 MB / 0.5501 GB, free: 116 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3708/0.7818, allocations: 110.1 MB / 0.6576 GB, free: 332 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005404/0.7824, allocations: 6.406 kB / 0.6576 GB, free: 332 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002738/0.7851, allocations: 1.277 MB / 0.6589 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004324/0.7895, allocations: 1.545 MB / 0.6604 GB, free: 276 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.08886/0.8784, allocations: 28.69 MB / 0.6884 GB, free: 8.062 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002129/0.8806, allocations: 1.327 MB / 0.6897 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.8809, allocations: 125.9 kB / 0.6898 GB, free: 7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01617/0.8971, allocations: 8.633 MB / 0.6982 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006751/0.8978, allocations: 362.6 kB / 0.6986 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.8979, allocations: 40 kB / 0.6986 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07784/0.9758, allocations: 33.67 MB / 0.7315 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.9761, allocations: 122.2 kB / 0.7316 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005651/0.9767, allocations: 297.8 kB / 0.7319 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04472/1.021, allocations: 14.13 MB / 0.7457 GB, free: 4.762 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.021, allocations: 0 / 0.7457 GB, free: 4.762 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.733e-06/1.021, allocations: 0 / 0.7457 GB, free: 4.762 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.774e-05/1.021, allocations: 4 kB / 0.7457 GB, free: 4.758 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.006264/1.028, allocations: 2.57 MB / 0.7482 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.028, allocations: 12.02 kB / 0.7482 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/1.028, allocations: 86.52 kB / 0.7483 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006364/1.029, allocations: 83.41 kB / 0.7484 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/1.029, allocations: 342 kB / 0.7487 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/1.029, allocations: 36.16 kB / 0.7487 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/1.029, allocations: 32 kB / 0.7488 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/1.031, allocations: 0.6056 MB / 0.7494 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/1.031, allocations: 0 / 0.7494 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/1.031, allocations: 16 kB / 0.7494 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/1.031, allocations: 19.91 kB / 0.7494 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/1.032, allocations: 0.5442 MB / 0.7499 GB, free: 340 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/1.035, allocations: 2.51 MB / 0.7524 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/1.036, allocations: 0.4949 MB / 0.7529 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/1.037, allocations: 341.2 kB / 0.7532 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4335/1.47, allocations: 139 MB / 0.8889 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/1.47, allocations: 41.03 kB / 0.889 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.496e-06/1.47, allocations: 3.75 kB / 0.889 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005698/1.476, allocations: 2.325 MB / 0.8912 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/1.476, allocations: 56.69 kB / 0.8913 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/1.476, allocations: 257.3 kB / 0.8915 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/1.476, allocations: 30.95 kB / 0.8916 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/1.476, allocations: 190.5 kB / 0.8917 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/1.477, allocations: 259.8 kB / 0.892 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/1.477, allocations: 101 kB / 0.8921 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.503e-05/1.477, allocations: 356.1 kB / 0.8924 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/1.477, allocations: 280.6 kB / 0.8927 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/1.478, allocations: 406.4 kB / 0.8931 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/1.479, allocations: 0.7017 MB / 0.8938 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/1.479, allocations: 3.984 kB / 0.8938 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001363/1.48, allocations: 0.796 MB / 0.8946 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/1.48, allocations: 11.98 kB / 0.8946 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.48, allocations: 4 kB / 0.8946 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002651/1.48, allocations: 58.25 kB / 0.8946 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/1.481, allocations: 133.4 kB / 0.8947 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06839/1.549, allocations: 19.87 MB / 0.9142 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004731/1.55, allocations: 31.97 kB / 0.9142 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/1.55, allocations: 20 kB / 0.9142 GB, free: 197.1 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.0002668/1.55, allocations: 192.3 kB / 0.9144 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.274e-05/1.55, allocations: 39.53 kB / 0.9144 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/1.552, allocations: 1.582 MB / 0.916 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/1.552, allocations: 15.98 kB / 0.916 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.552, allocations: 2.5 kB / 0.916 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00127/1.553, allocations: 1.176 MB / 0.9171 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/1.555, allocations: 1.633 MB / 0.9187 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.555, allocations: 0 / 0.9187 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/1.556, allocations: 83.88 kB / 0.9188 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002602/1.556, allocations: 105.5 kB / 0.9189 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/1.556, allocations: 15.98 kB / 0.9189 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/1.557, allocations: 1.986 MB / 0.9209 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.557, allocations: 0 / 0.9209 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/1.559, allocations: 1.25 MB / 0.9221 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/1.559, allocations: 124.4 kB / 0.9222 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/1.559, allocations: 12 kB / 0.9222 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/1.559, allocations: 28.84 kB / 0.9222 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.559, allocations: 44.02 kB / 0.9223 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/1.559, allocations: 15.98 kB / 0.9223 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002198/1.56, allocations: 243 kB / 0.9225 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.56, allocations: 0 / 0.9225 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008135/1.568, allocations: 3.51 MB / 0.926 GB, free: 185.1 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.01788/1.586, allocations: 6.216 MB / 0.932 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002063/1.588, allocations: 0.9948 MB / 0.933 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/1.588, allocations: 0 / 0.933 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000776/1.589, allocations: 0.5033 MB / 0.9335 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/1.591, allocations: 387.5 kB / 0.9339 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/1.603, allocations: 6.3 MB / 0.94 GB, free: 171 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/1.603, allocations: 0.8524 MB / 0.9408 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004441/1.604, allocations: 148 kB / 0.941 GB, free: 169.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/1.604, allocations: 167.4 kB / 0.9411 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.072e-06/1.604, allocations: 0 / 0.9411 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2167/1.821, allocations: 132.8 MB / 1.071 GB, free: 36.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.71/19.53, allocations: 16.38 kB / 1.071 GB, free: 36.83 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)