Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.001184/0.001184, 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.001144/0.001144, allocations: 195.9 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.685/1.685, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0565/0.0565, allocations: 9.104 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.002046/0.002046, allocations: 71.83 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1324, allocations: 48.16 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.4566/0.5891, allocations: 142.2 MB / 0.5161 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.5281/1.117, allocations: 97.71 MB / 0.6115 GB, free: 296 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008537/1.118, allocations: 7.406 kB / 0.6115 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004007/1.122, allocations: 1.361 MB / 0.6128 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005102/1.127, allocations: 1.656 MB / 0.6144 GB, free: 264 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.1004/1.228, allocations: 29.54 MB / 0.6433 GB, free: 13.6 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/1.231, allocations: 1.417 MB / 0.6447 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/1.231, allocations: 118.2 kB / 0.6448 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02172/1.253, allocations: 9.853 MB / 0.6544 GB, free: 9.195 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/1.254, allocations: 386.7 kB / 0.6548 GB, free: 8.941 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/1.254, allocations: 44 kB / 0.6548 GB, free: 8.898 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06628/1.32, allocations: 28.65 MB / 0.6828 GB, free: 4.68 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003759/1.321, allocations: 116.7 kB / 0.6829 GB, free: 4.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007601/1.321, allocations: 305.4 kB / 0.6832 GB, free: 4.273 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04939/1.371, allocations: 11.93 MB / 0.6949 GB, free: 9.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/1.371, allocations: 0 / 0.6949 GB, free: 9.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.797e-06/1.371, allocations: 0 / 0.6949 GB, free: 9.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/1.371, allocations: 3.938 kB / 0.6949 GB, free: 9.176 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.007258/1.378, allocations: 2.142 MB / 0.6969 GB, free: 6.988 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.378, allocations: 12.03 kB / 0.697 GB, free: 6.977 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.358e-05/1.378, allocations: 79.64 kB / 0.697 GB, free: 6.891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000571/1.379, allocations: 79.41 kB / 0.6971 GB, free: 6.812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/1.379, allocations: 343.2 kB / 0.6974 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/1.379, allocations: 32.66 kB / 0.6975 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/1.379, allocations: 36 kB / 0.6975 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/1.381, allocations: 0.5805 MB / 0.6981 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/1.381, allocations: 7.891 kB / 0.6981 GB, free: 5.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/1.381, allocations: 16 kB / 0.6981 GB, free: 5.754 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/1.381, allocations: 14.03 kB / 0.6981 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/1.382, allocations: 0.5213 MB / 0.6986 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002671/1.385, allocations: 2.482 MB / 0.701 GB, free: 2.539 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/1.386, allocations: 0.493 MB / 0.7015 GB, free: 2.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/1.386, allocations: 334.3 kB / 0.7018 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4199/1.806, allocations: 113.2 MB / 0.8124 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/1.806, allocations: 40.77 kB / 0.8125 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 4.758e-06/1.806, allocations: 0 / 0.8125 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.008648/1.815, allocations: 2.636 MB / 0.815 GB, free: 306.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/1.815, allocations: 56.62 kB / 0.8151 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/1.815, allocations: 262.6 kB / 0.8154 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/1.815, allocations: 33.55 kB / 0.8154 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/1.815, allocations: 189.5 kB / 0.8156 GB, free: 306.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/1.816, allocations: 265.4 kB / 0.8158 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/1.816, allocations: 103.4 kB / 0.8159 GB, free: 306.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.816, allocations: 351.2 kB / 0.8163 GB, free: 305.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/1.817, allocations: 281.2 kB / 0.8165 GB, free: 305.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006242/1.817, allocations: 397.6 kB / 0.8169 GB, free: 305.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/1.818, allocations: 0.7106 MB / 0.8176 GB, free: 305.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.818, allocations: 1.156 kB / 0.8176 GB, free: 305.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001486/1.82, allocations: 0.8225 MB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/1.82, allocations: 7.312 kB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.82, allocations: 9.047 kB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007969/1.821, allocations: 150.1 kB / 0.8186 GB, free: 304.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/1.821, allocations: 125.5 kB / 0.8187 GB, free: 304.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/1.823, allocations: 3.742 MB / 0.8223 GB, free: 300.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/1.823, allocations: 34.28 kB / 0.8224 GB, free: 300.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/1.823, allocations: 27.66 kB / 0.8224 GB, free: 300.9 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 (47): * Single equations (assignments): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002412/1.824, allocations: 188 kB / 0.8226 GB, free: 300.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.329e-05/1.824, allocations: 44.81 kB / 0.8226 GB, free: 300.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/1.826, allocations: 1.673 MB / 0.8242 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.826, allocations: 15.05 kB / 0.8243 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.826, allocations: 0 / 0.8243 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001303/1.827, allocations: 1.253 MB / 0.8255 GB, free: 299 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/1.829, allocations: 1.73 MB / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/1.829, allocations: 0 / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/1.83, allocations: 75 kB / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006546/1.83, allocations: 261 kB / 0.8275 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/1.83, allocations: 10.22 kB / 0.8275 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007462/1.831, allocations: 1.784 MB / 0.8292 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.831, allocations: 0 / 0.8292 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/1.833, allocations: 1.457 MB / 0.8307 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/1.833, allocations: 120.4 kB / 0.8308 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/1.833, allocations: 11.97 kB / 0.8308 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/1.833, allocations: 27.09 kB / 0.8308 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.707e-05/1.834, allocations: 43.73 kB / 0.8309 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/1.834, allocations: 15.89 kB / 0.8309 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001849/1.834, allocations: 220.2 kB / 0.8311 GB, free: 295.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.3e-07/1.834, allocations: 0 / 0.8311 GB, free: 295.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005803/1.84, allocations: 1.971 MB / 0.833 GB, free: 294.9 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.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0134/1.853, allocations: 4.498 MB / 0.8374 GB, free: 293.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002281/1.855, allocations: 0.9028 MB / 0.8383 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.855, allocations: 4.812 kB / 0.8383 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007161/1.856, allocations: 434.8 kB / 0.8387 GB, free: 292.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/1.858, allocations: 401.3 kB / 0.8391 GB, free: 292 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009383/1.867, allocations: 5.716 MB / 0.8447 GB, free: 286.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/1.868, allocations: 0.8428 MB / 0.8455 GB, free: 285.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004569/1.868, allocations: 97.69 kB / 0.8456 GB, free: 285.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/1.868, allocations: 167.4 kB / 0.8457 GB, free: 285.1 MB / 0.5919 GB Notification: Performance of SimCode: time 8.42e-07/1.868, allocations: 0 / 0.8457 GB, free: 285.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.993, allocations: 77.94 MB / 0.9219 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/15.95, allocations: 15.72 kB / 0.9219 GB, free: 207.1 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)