Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_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_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_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.007878/0.007878, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001968/0.001968, allocations: 195 kB / 16.67 MB, free: 5.934 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.447/1.447, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05079/0.05079, allocations: 9.1 MB / 279 MB, free: 12.05 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.001561/0.001561, allocations: 72.33 kB / 387 MB, free: 8.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2815, allocations: 48.14 MB / 435.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1547/0.4362, allocations: 142.2 MB / 0.5638 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3726/0.8088, allocations: 97.71 MB / 0.6593 GB, free: 236 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006879/0.8095, allocations: 8.312 kB / 0.6593 GB, free: 236 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003291/0.8129, allocations: 1.36 MB / 0.6606 GB, free: 228 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004949/0.8179, allocations: 1.656 MB / 0.6622 GB, free: 180 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.09779/0.9157, allocations: 29.53 MB / 0.691 GB, free: 6.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002621/0.9183, allocations: 1.41 MB / 0.6924 GB, free: 5.914 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003115/0.9186, allocations: 120.3 kB / 0.6925 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01684/0.9355, allocations: 9.874 MB / 0.7022 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005473/0.9361, allocations: 384.4 kB / 0.7026 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.151e-05/0.9362, allocations: 44 kB / 0.7026 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05948/0.9956, allocations: 31.39 MB / 0.7332 GB, free: 1.219 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003092/0.996, allocations: 123.1 kB / 0.7334 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005619/0.9966, allocations: 305.2 kB / 0.7337 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04832/1.045, allocations: 12.66 MB / 0.746 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/1.045, allocations: 0 / 0.746 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.404e-06/1.045, allocations: 0 / 0.746 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.13e-05/1.045, allocations: 0 / 0.746 GB, free: 5.066 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.007346/1.052, allocations: 2.286 MB / 0.7482 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/1.052, allocations: 12.03 kB / 0.7483 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/1.053, allocations: 87.33 kB / 0.7483 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006213/1.053, allocations: 83.39 kB / 0.7484 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/1.054, allocations: 339.2 kB / 0.7487 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/1.054, allocations: 28.66 kB / 0.7488 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.569e-05/1.054, allocations: 35.94 kB / 0.7488 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/1.055, allocations: 0.5844 MB / 0.7494 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/1.055, allocations: 4 kB / 0.7494 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/1.055, allocations: 16 kB / 0.7494 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.05e-05/1.055, allocations: 14.81 kB / 0.7494 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/1.057, allocations: 0.5242 MB / 0.7499 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002919/1.06, allocations: 2.501 MB / 0.7524 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/1.061, allocations: 0.491 MB / 0.7528 GB, free: 13.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006118/1.061, allocations: 334.7 kB / 0.7532 GB, free: 13.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.428/1.489, allocations: 121.8 MB / 0.8721 GB, free: 240.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/1.489, allocations: 38.78 kB / 0.8722 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 5.15e-06/1.489, allocations: 3.938 kB / 0.8722 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006638/1.496, allocations: 2.398 MB / 0.8745 GB, free: 239.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/1.496, allocations: 55.38 kB / 0.8746 GB, free: 239.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/1.497, allocations: 257.2 kB / 0.8748 GB, free: 239 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/1.497, allocations: 40.42 kB / 0.8749 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/1.497, allocations: 187.3 kB / 0.875 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/1.497, allocations: 260.8 kB / 0.8753 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/1.497, allocations: 105.2 kB / 0.8754 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.497, allocations: 346.6 kB / 0.8757 GB, free: 238.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004629/1.498, allocations: 272.9 kB / 0.876 GB, free: 238 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/1.498, allocations: 401.7 kB / 0.8764 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/1.499, allocations: 0.7061 MB / 0.8771 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/1.499, allocations: 0 / 0.8771 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001424/1.501, allocations: 0.8069 MB / 0.8778 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.501, allocations: 3.969 kB / 0.8778 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/1.501, allocations: 7.281 kB / 0.8779 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000549/1.501, allocations: 109.5 kB / 0.878 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/1.502, allocations: 109.2 kB / 0.8781 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06859/1.57, allocations: 19.19 MB / 0.8968 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/1.571, allocations: 39.08 kB / 0.8968 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/1.571, allocations: 16 kB / 0.8968 GB, free: 219.8 MB / 0.6075 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): 40 * 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, 2} * 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.0002471/1.571, allocations: 206.5 kB / 0.897 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/1.571, allocations: 39.53 kB / 0.8971 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/1.573, allocations: 1.693 MB / 0.8987 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/1.573, allocations: 8 kB / 0.8987 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.573, allocations: 0 / 0.8987 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00125/1.574, allocations: 1.278 MB / 0.9 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/1.576, allocations: 1.744 MB / 0.9017 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/1.576, allocations: 0 / 0.9017 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/1.577, allocations: 75.92 kB / 0.9018 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003075/1.577, allocations: 186.3 kB / 0.9019 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/1.577, allocations: 8 kB / 0.902 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/1.578, allocations: 2.584 MB / 0.9045 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/1.578, allocations: 0 / 0.9045 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/1.58, allocations: 1.446 MB / 0.9059 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/1.58, allocations: 124.9 kB / 0.906 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/1.58, allocations: 8 kB / 0.906 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/1.58, allocations: 27.97 kB / 0.906 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/1.581, allocations: 47.88 kB / 0.9061 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/1.581, allocations: 12.06 kB / 0.9061 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001798/1.581, allocations: 227.1 kB / 0.9063 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.31e-07/1.581, allocations: 0 / 0.9063 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00747/1.588, allocations: 3.23 MB / 0.9095 GB, free: 206.8 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: 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), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0184/1.607, allocations: 5.844 MB / 0.9152 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001947/1.609, allocations: 0.9935 MB / 0.9161 GB, free: 200.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.609, allocations: 0 / 0.9161 GB, free: 200.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007256/1.609, allocations: 0.5151 MB / 0.9166 GB, free: 199.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/1.611, allocations: 387.1 kB / 0.917 GB, free: 199.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/1.624, allocations: 6.121 MB / 0.923 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/1.625, allocations: 0.8525 MB / 0.9238 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004012/1.625, allocations: 115.2 kB / 0.9239 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/1.625, allocations: 167.4 kB / 0.9241 GB, free: 192 MB / 0.6075 GB Notification: Performance of SimCode: time 8.52e-07/1.625, allocations: 0 / 0.9241 GB, free: 192 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1941/1.819, allocations: 128.9 MB / 1.05 GB, free: 62.79 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.85/19.67, allocations: 15.86 kB / 1.05 GB, free: 62.78 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)