Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.001563/0.001563, 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.001261/0.001261, allocations: 194.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.526/1.526, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04848/0.04848, allocations: 9.097 MB / 278.9 MB, free: 12.19 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.001756/0.001756, allocations: 75.88 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1052, allocations: 48.15 MB / 386.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.4046/0.5099, allocations: 142.2 MB / 0.5161 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4945/1.004, allocations: 97.71 MB / 0.6115 GB, free: 320 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/1.006, allocations: 8.094 kB / 0.6115 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005699/1.012, allocations: 1.367 MB / 0.6128 GB, free: 312 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005627/1.017, allocations: 1.653 MB / 0.6144 GB, free: 288 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.0886/1.106, allocations: 29.53 MB / 0.6433 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002374/1.108, allocations: 1.416 MB / 0.6447 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/1.109, allocations: 126.1 kB / 0.6448 GB, free: 13.19 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01735/1.126, allocations: 9.856 MB / 0.6544 GB, free: 9.172 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006377/1.127, allocations: 380.8 kB / 0.6548 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.051e-05/1.127, allocations: 47.38 kB / 0.6548 GB, free: 8.875 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06848/1.195, allocations: 34.82 MB / 0.6888 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003242/1.196, allocations: 122 kB / 0.6889 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006931/1.197, allocations: 302.5 kB / 0.6892 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05269/1.249, allocations: 14.57 MB / 0.7035 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/1.249, allocations: 0 / 0.7035 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.376e-06/1.249, allocations: 0 / 0.7035 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/1.249, allocations: 0 / 0.7035 GB, free: 0.8438 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.007813/1.257, allocations: 2.669 MB / 0.7061 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/1.257, allocations: 8.031 kB / 0.7061 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/1.257, allocations: 86.52 kB / 0.7062 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005091/1.258, allocations: 75.41 kB / 0.7062 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/1.258, allocations: 332 kB / 0.7066 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/1.258, allocations: 28.66 kB / 0.7066 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.296e-05/1.258, allocations: 32 kB / 0.7066 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/1.26, allocations: 0.5883 MB / 0.7072 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/1.26, allocations: 0 / 0.7072 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/1.26, allocations: 16 kB / 0.7072 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/1.26, allocations: 14.66 kB / 0.7072 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/1.261, allocations: 0.518 MB / 0.7077 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002756/1.264, allocations: 2.493 MB / 0.7102 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/1.265, allocations: 492.4 kB / 0.7106 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005378/1.265, allocations: 326.3 kB / 0.7109 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3487/1.614, allocations: 113.4 MB / 0.8217 GB, free: 295.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/1.614, allocations: 38.38 kB / 0.8217 GB, free: 295.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.426e-06/1.614, allocations: 0 / 0.8217 GB, free: 295.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006796/1.621, allocations: 2.443 MB / 0.8241 GB, free: 294.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/1.621, allocations: 57.41 kB / 0.8242 GB, free: 294.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/1.621, allocations: 257.7 kB / 0.8244 GB, free: 294.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/1.621, allocations: 33.86 kB / 0.8244 GB, free: 294.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/1.621, allocations: 188.3 kB / 0.8246 GB, free: 294.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/1.622, allocations: 271 kB / 0.8249 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/1.622, allocations: 101.7 kB / 0.825 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.179e-05/1.622, allocations: 358.1 kB / 0.8253 GB, free: 293.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005196/1.622, allocations: 279.2 kB / 0.8256 GB, free: 293.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/1.623, allocations: 400.9 kB / 0.826 GB, free: 293.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/1.624, allocations: 0.7032 MB / 0.8267 GB, free: 293 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.624, allocations: 0 / 0.8267 GB, free: 293 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001539/1.625, allocations: 0.8251 MB / 0.8275 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/1.626, allocations: 7.938 kB / 0.8275 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.626, allocations: 0 / 0.8275 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/1.626, allocations: 83.03 kB / 0.8276 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/1.626, allocations: 109.1 kB / 0.8277 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04401/1.67, allocations: 13.68 MB / 0.841 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006005/1.671, allocations: 39.03 kB / 0.8411 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/1.671, allocations: 19.86 kB / 0.8411 GB, free: 284.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003311/1.671, allocations: 189.6 kB / 0.8413 GB, free: 284.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/1.671, allocations: 39.38 kB / 0.8413 GB, free: 284.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/1.674, allocations: 1.728 MB / 0.843 GB, free: 283.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/1.674, allocations: 17.3 kB / 0.843 GB, free: 283.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/1.674, allocations: 2 kB / 0.843 GB, free: 283.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001558/1.675, allocations: 1.263 MB / 0.8442 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/1.677, allocations: 1.742 MB / 0.8459 GB, free: 281 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/1.677, allocations: 1.812 kB / 0.8459 GB, free: 281 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/1.678, allocations: 86.66 kB / 0.846 GB, free: 281 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002716/1.678, allocations: 120.5 kB / 0.8461 GB, free: 280.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/1.678, allocations: 11.8 kB / 0.8461 GB, free: 280.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/1.679, allocations: 2.093 MB / 0.8482 GB, free: 278.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.679, allocations: 0 / 0.8482 GB, free: 278.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/1.681, allocations: 1.426 MB / 0.8496 GB, free: 277.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.838e-05/1.681, allocations: 120.5 kB / 0.8497 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/1.681, allocations: 8.688 kB / 0.8497 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002951/1.682, allocations: 26.84 kB / 0.8497 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.986e-05/1.682, allocations: 47.94 kB / 0.8498 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/1.682, allocations: 19.92 kB / 0.8498 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001919/1.682, allocations: 223 kB / 0.85 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.682, allocations: 0 / 0.85 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008071/1.69, allocations: 2.987 MB / 0.8529 GB, free: 274.6 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,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.01781/1.708, allocations: 5.64 MB / 0.8584 GB, free: 269.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002435/1.71, allocations: 1.062 MB / 0.8595 GB, free: 268.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.71, allocations: 0 / 0.8595 GB, free: 268.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008395/1.711, allocations: 0.5602 MB / 0.86 GB, free: 268 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/1.713, allocations: 397.5 kB / 0.8604 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/1.727, allocations: 6.262 MB / 0.8665 GB, free: 261.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/1.727, allocations: 0.8569 MB / 0.8673 GB, free: 260.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005153/1.728, allocations: 127.5 kB / 0.8675 GB, free: 260.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/1.728, allocations: 175.4 kB / 0.8676 GB, free: 260 MB / 0.5919 GB Notification: Performance of SimCode: time 1.072e-06/1.728, allocations: 0 / 0.8676 GB, free: 260 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1757/1.904, allocations: 118.7 MB / 0.9836 GB, free: 141.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.33/19.24, allocations: 8.266 kB / 0.9836 GB, free: 141.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)