Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.001363/0.001362, allocations: 108 kB / 15.6 MB, free: 132 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.001286/0.001286, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.42/1.42, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04873/0.04873, allocations: 9.093 MB / 278.9 MB, free: 12.2 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.001727/0.001727, allocations: 59.91 kB / 338.1 MB, free: 25.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09618/0.09793, allocations: 48.17 MB / 386.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.3858/0.4838, allocations: 128.8 MB / 0.503 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4053/0.8891, allocations: 111.1 MB / 0.6115 GB, free: 308 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006426/0.8898, allocations: 7.875 kB / 0.6115 GB, free: 308 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003443/0.8933, allocations: 1.366 MB / 0.6128 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003369/0.8967, allocations: 1.649 MB / 0.6144 GB, free: 280 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.07414/0.9709, allocations: 29.52 MB / 0.6433 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.973, allocations: 1.405 MB / 0.6446 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.9733, allocations: 130.5 kB / 0.6448 GB, free: 13.23 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01764/0.9909, allocations: 9.833 MB / 0.6544 GB, free: 9.289 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005608/0.9915, allocations: 382.4 kB / 0.6547 GB, free: 9.035 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.791e-05/0.9916, allocations: 44 kB / 0.6548 GB, free: 8.992 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06799/1.06, allocations: 33.89 MB / 0.6879 GB, free: 15.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000323/1.06, allocations: 122.5 kB / 0.688 GB, free: 15.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006811/1.061, allocations: 305.4 kB / 0.6883 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05104/1.112, allocations: 14.16 MB / 0.7021 GB, free: 2.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/1.112, allocations: 4 kB / 0.7021 GB, free: 2.266 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/1.112, allocations: 0 / 0.7021 GB, free: 2.266 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.617e-05/1.112, allocations: 0 / 0.7021 GB, free: 2.266 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.007282/1.119, allocations: 2.569 MB / 0.7046 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.55e-05/1.119, allocations: 12.02 kB / 0.7046 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001501/1.119, allocations: 90.45 kB / 0.7047 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007593/1.12, allocations: 83.41 kB / 0.7048 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006123/1.121, allocations: 344.7 kB / 0.7051 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/1.121, allocations: 24.66 kB / 0.7052 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.937e-05/1.121, allocations: 36 kB / 0.7052 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/1.122, allocations: 0.6002 MB / 0.7058 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/1.122, allocations: 3.906 kB / 0.7058 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.356e-05/1.122, allocations: 12 kB / 0.7058 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/1.122, allocations: 24.59 kB / 0.7058 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/1.124, allocations: 0.5559 MB / 0.7064 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/1.127, allocations: 2.457 MB / 0.7088 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/1.128, allocations: 491.9 kB / 0.7092 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005652/1.129, allocations: 341.9 kB / 0.7095 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4419/1.571, allocations: 139 MB / 0.8453 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/1.571, allocations: 42.98 kB / 0.8453 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 3.777e-06/1.571, allocations: 0 / 0.8453 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005508/1.576, allocations: 2.34 MB / 0.8476 GB, free: 274.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/1.576, allocations: 55.19 kB / 0.8476 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/1.577, allocations: 264.4 kB / 0.8479 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/1.577, allocations: 37.14 kB / 0.8479 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/1.577, allocations: 187.8 kB / 0.8481 GB, free: 274 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.577, allocations: 258.9 kB / 0.8484 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/1.577, allocations: 97.7 kB / 0.8485 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.404e-05/1.577, allocations: 355.2 kB / 0.8488 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/1.577, allocations: 277.8 kB / 0.8491 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/1.578, allocations: 390.1 kB / 0.8494 GB, free: 273 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000968/1.579, allocations: 0.6958 MB / 0.8501 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/1.579, allocations: 2.594 kB / 0.8501 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001292/1.58, allocations: 0.7937 MB / 0.8509 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/1.58, allocations: 7.938 kB / 0.8509 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/1.58, allocations: 0.9375 kB / 0.8509 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/1.581, allocations: 69.73 kB / 0.851 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006618/1.581, allocations: 143.7 kB / 0.8511 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09061/1.672, allocations: 25.44 MB / 0.8759 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/1.672, allocations: 28 kB / 0.876 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.126e-05/1.672, allocations: 24.06 kB / 0.876 GB, free: 248.3 MB / 0.5919 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.0003226/1.673, allocations: 188.8 kB / 0.8762 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/1.673, allocations: 47.33 kB / 0.8762 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/1.675, allocations: 1.71 MB / 0.8779 GB, free: 246.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/1.675, allocations: 19.98 kB / 0.8779 GB, free: 246.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/1.675, allocations: 3.938 kB / 0.8779 GB, free: 246.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001382/1.676, allocations: 1.284 MB / 0.8792 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/1.678, allocations: 1.759 MB / 0.8809 GB, free: 243.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/1.678, allocations: 2.188 kB / 0.8809 GB, free: 243.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/1.679, allocations: 75.88 kB / 0.881 GB, free: 243 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/1.679, allocations: 166.4 kB / 0.8811 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/1.679, allocations: 4 kB / 0.8811 GB, free: 242.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/1.68, allocations: 2.573 MB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.68, allocations: 4.031 kB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/1.682, allocations: 1.384 MB / 0.885 GB, free: 238.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/1.682, allocations: 120.5 kB / 0.8851 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/1.682, allocations: 11.92 kB / 0.8851 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/1.683, allocations: 22.67 kB / 0.8851 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/1.683, allocations: 43.94 kB / 0.8852 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/1.683, allocations: 15.98 kB / 0.8852 GB, free: 238.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001928/1.683, allocations: 231.1 kB / 0.8854 GB, free: 238.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.683, allocations: 3.938 kB / 0.8854 GB, free: 238.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008214/1.691, allocations: 3.181 MB / 0.8885 GB, free: 235.4 MB / 0.5919 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.01816/1.71, allocations: 5.821 MB / 0.8942 GB, free: 230 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002598/1.712, allocations: 1.039 MB / 0.8952 GB, free: 229 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.712, allocations: 0 / 0.8952 GB, free: 229 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007897/1.713, allocations: 0.5113 MB / 0.8957 GB, free: 228.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/1.715, allocations: 402.3 kB / 0.8961 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/1.728, allocations: 6.107 MB / 0.9021 GB, free: 221.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/1.728, allocations: 0.8526 MB / 0.9029 GB, free: 220.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005192/1.729, allocations: 135.2 kB / 0.903 GB, free: 220.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/1.729, allocations: 163.4 kB / 0.9032 GB, free: 220.6 MB / 0.5919 GB Notification: Performance of SimCode: time 7.72e-07/1.729, allocations: 0 / 0.9032 GB, free: 220.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1932/1.922, allocations: 125.3 MB / 1.026 GB, free: 95.09 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/19.33, allocations: 11.75 kB / 1.026 GB, free: 95.07 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)