Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.001672/0.001672, 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.001916/0.001917, allocations: 195.8 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.609/1.609, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04673/0.04673, allocations: 9.092 MB / 278.9 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.001731/0.001732, allocations: 63.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.09001, allocations: 48.15 MB / 386.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.355/0.445, allocations: 142.2 MB / 0.5161 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4066/0.8517, allocations: 97.7 MB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.8526, allocations: 9.469 kB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003861/0.8565, allocations: 1.364 MB / 0.6128 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004184/0.8607, allocations: 1.651 MB / 0.6144 GB, free: 296 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.07751/0.9382, allocations: 29.54 MB / 0.6433 GB, free: 13.63 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001921/0.9402, allocations: 1.399 MB / 0.6447 GB, free: 13.25 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.9405, allocations: 130.5 kB / 0.6448 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01641/0.9569, allocations: 9.864 MB / 0.6544 GB, free: 9.246 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005399/0.9575, allocations: 381.5 kB / 0.6548 GB, free: 8.992 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.9576, allocations: 44 kB / 0.6548 GB, free: 8.949 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.067/1.025, allocations: 33.92 MB / 0.6879 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002585/1.025, allocations: 114 kB / 0.6881 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000605/1.025, allocations: 305.9 kB / 0.6883 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05103/1.077, allocations: 14.17 MB / 0.7022 GB, free: 2.191 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/1.077, allocations: 0 / 0.7022 GB, free: 2.191 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.106e-06/1.077, allocations: 0 / 0.7022 GB, free: 2.191 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/1.077, allocations: 7.938 kB / 0.7022 GB, free: 2.184 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.00696/1.084, allocations: 2.566 MB / 0.7047 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/1.084, allocations: 12.03 kB / 0.7047 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/1.084, allocations: 82.52 kB / 0.7048 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006264/1.084, allocations: 91.39 kB / 0.7049 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/1.085, allocations: 343.6 kB / 0.7052 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/1.085, allocations: 28.66 kB / 0.7052 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/1.085, allocations: 32 kB / 0.7053 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/1.086, allocations: 0.6 MB / 0.7058 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/1.086, allocations: 0 / 0.7058 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.962e-05/1.086, allocations: 12 kB / 0.7059 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/1.086, allocations: 18.73 kB / 0.7059 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/1.088, allocations: 0.5525 MB / 0.7064 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/1.09, allocations: 2.504 MB / 0.7089 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/1.092, allocations: 0.491 MB / 0.7093 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005589/1.092, allocations: 352.4 kB / 0.7097 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4401/1.532, allocations: 139 MB / 0.8454 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/1.532, allocations: 36.27 kB / 0.8454 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.887e-06/1.532, allocations: 0 / 0.8454 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005654/1.538, allocations: 2.343 MB / 0.8477 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/1.538, allocations: 63.66 kB / 0.8478 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/1.538, allocations: 253.3 kB / 0.848 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/1.538, allocations: 33.67 kB / 0.848 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.168e-05/1.538, allocations: 187.4 kB / 0.8482 GB, free: 274 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/1.539, allocations: 271.8 kB / 0.8485 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/1.539, allocations: 97.64 kB / 0.8486 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.375e-05/1.539, allocations: 350.7 kB / 0.8489 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000435/1.539, allocations: 271.5 kB / 0.8492 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004812/1.54, allocations: 400.8 kB / 0.8496 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009511/1.541, allocations: 0.7098 MB / 0.8502 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.541, allocations: 3.688 kB / 0.8502 GB, free: 272.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001337/1.542, allocations: 0.8024 MB / 0.851 GB, free: 272 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/1.542, allocations: 7.812 kB / 0.851 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/1.542, allocations: 7.344 kB / 0.851 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/1.542, allocations: 61.42 kB / 0.8511 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/1.543, allocations: 129.4 kB / 0.8512 GB, free: 272 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09295/1.636, allocations: 24.85 MB / 0.8755 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/1.636, allocations: 27.97 kB / 0.8755 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/1.636, allocations: 20 kB / 0.8755 GB, free: 248.7 MB / 0.5919 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.0002598/1.637, allocations: 200.3 kB / 0.8757 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.695e-05/1.637, allocations: 39.53 kB / 0.8758 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/1.639, allocations: 1.578 MB / 0.8773 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/1.639, allocations: 7.203 kB / 0.8773 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/1.639, allocations: 0 / 0.8773 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001197/1.64, allocations: 1.184 MB / 0.8785 GB, free: 245.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/1.642, allocations: 1.639 MB / 0.8801 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/1.642, allocations: 4.5 kB / 0.8801 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/1.642, allocations: 79.97 kB / 0.8802 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002603/1.642, allocations: 105.5 kB / 0.8803 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/1.642, allocations: 11.5 kB / 0.8803 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/1.643, allocations: 2 MB / 0.8822 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.643, allocations: 0 / 0.8822 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/1.645, allocations: 1.249 MB / 0.8834 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/1.645, allocations: 116.5 kB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.276e-05/1.645, allocations: 8 kB / 0.8836 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/1.646, allocations: 31.91 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-05/1.646, allocations: 43.94 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/1.646, allocations: 8 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001969/1.646, allocations: 251.1 kB / 0.8839 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.646, allocations: 0 / 0.8839 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007805/1.654, allocations: 3.185 MB / 0.887 GB, free: 237 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 (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.01743/1.671, allocations: 5.777 MB / 0.8926 GB, free: 231.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002162/1.673, allocations: 0.9844 MB / 0.8936 GB, free: 230.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.673, allocations: 7.984 kB / 0.8936 GB, free: 230.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007594/1.674, allocations: 499.5 kB / 0.8941 GB, free: 230.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/1.676, allocations: 400.9 kB / 0.8945 GB, free: 229.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/1.688, allocations: 6.18 MB / 0.9005 GB, free: 223.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/1.688, allocations: 0.8563 MB / 0.9013 GB, free: 222.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004957/1.689, allocations: 143.2 kB / 0.9015 GB, free: 222.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/1.689, allocations: 167.4 kB / 0.9016 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/1.689, allocations: 0 / 0.9016 GB, free: 222.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1734/1.862, allocations: 124.9 MB / 1.024 GB, free: 97.07 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.2/19.06, allocations: 12.09 kB / 1.024 GB, free: 97.05 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)