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.005556/0.005556, 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.001301/0.001301, allocations: 189.7 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.315/1.315, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04826/0.04826, allocations: 9.091 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.001974/0.001974, allocations: 75.91 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2262, allocations: 48.14 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1474/0.3737, allocations: 142.2 MB / 0.5638 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2953/0.669, allocations: 97.71 MB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004422/0.6695, allocations: 7.969 kB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002494/0.6721, allocations: 1.37 MB / 0.6606 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002944/0.675, allocations: 1.653 MB / 0.6622 GB, free: 236 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.06809/0.7431, allocations: 29.54 MB / 0.6911 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001926/0.7451, allocations: 1.418 MB / 0.6924 GB, free: 5.965 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.7453, allocations: 120.3 kB / 0.6926 GB, free: 5.875 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01666/0.762, allocations: 9.86 MB / 0.7022 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004978/0.7625, allocations: 384.6 kB / 0.7026 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.079e-05/0.7626, allocations: 43.94 kB / 0.7026 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05297/0.8156, allocations: 31.4 MB / 0.7333 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002446/0.8159, allocations: 114.1 kB / 0.7334 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005358/0.8164, allocations: 309.5 kB / 0.7337 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03514/0.8515, allocations: 12.7 MB / 0.7461 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.8516, allocations: 0 / 0.7461 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.023e-06/0.8516, allocations: 0 / 0.7461 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.026e-06/0.8516, allocations: 0 / 0.7461 GB, free: 5.023 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.005159/0.8568, allocations: 2.375 MB / 0.7484 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.8568, allocations: 12.03 kB / 0.7484 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.488e-05/0.8569, allocations: 82.52 kB / 0.7485 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/0.8575, allocations: 91.62 kB / 0.7486 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.858, allocations: 341 kB / 0.7489 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.858, allocations: 32.66 kB / 0.7489 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.8581, allocations: 35.94 kB / 0.7489 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.8593, allocations: 0.5893 MB / 0.7495 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.8593, allocations: 0 / 0.7495 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.8594, allocations: 12 kB / 0.7495 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.8594, allocations: 19.83 kB / 0.7496 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.8606, allocations: 0.5259 MB / 0.7501 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.8632, allocations: 2.487 MB / 0.7525 GB, free: 14.12 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.8643, allocations: 0.4994 MB / 0.753 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005352/0.8648, allocations: 330.3 kB / 0.7533 GB, free: 13.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3231/1.188, allocations: 121.8 MB / 0.8723 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/1.188, allocations: 37.38 kB / 0.8723 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.727e-06/1.188, allocations: 0 / 0.8723 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005452/1.194, allocations: 2.414 MB / 0.8747 GB, free: 239.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.556e-05/1.194, allocations: 55 kB / 0.8747 GB, free: 239.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/1.194, allocations: 253 kB / 0.875 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/1.194, allocations: 37.67 kB / 0.875 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.967e-05/1.194, allocations: 190.6 kB / 0.8752 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/1.194, allocations: 281.9 kB / 0.8755 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/1.194, allocations: 104.2 kB / 0.8756 GB, free: 238.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.958e-05/1.194, allocations: 350.7 kB / 0.8759 GB, free: 238.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004241/1.195, allocations: 273.3 kB / 0.8762 GB, free: 237.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004619/1.195, allocations: 398.4 kB / 0.8765 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000889/1.196, allocations: 0.7041 MB / 0.8772 GB, free: 237.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.196, allocations: 3.969 kB / 0.8772 GB, free: 237.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001264/1.197, allocations: 0.8029 MB / 0.878 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/1.197, allocations: 7.875 kB / 0.878 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/1.197, allocations: 0 / 0.878 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004739/1.198, allocations: 108.3 kB / 0.8781 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/1.198, allocations: 110.1 kB / 0.8782 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06255/1.261, allocations: 19.21 MB / 0.897 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003938/1.261, allocations: 27.98 kB / 0.897 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/1.261, allocations: 19.98 kB / 0.897 GB, free: 219.7 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.0002168/1.262, allocations: 194.5 kB / 0.8972 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/1.262, allocations: 47.78 kB / 0.8973 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/1.263, allocations: 1.699 MB / 0.8989 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/1.263, allocations: 11.98 kB / 0.8989 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.263, allocations: 0 / 0.8989 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001176/1.265, allocations: 1.266 MB / 0.9002 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/1.266, allocations: 1.745 MB / 0.9019 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/1.266, allocations: 0 / 0.9019 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000292/1.267, allocations: 79.91 kB / 0.902 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002758/1.267, allocations: 189.9 kB / 0.9021 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/1.267, allocations: 4 kB / 0.9021 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009732/1.268, allocations: 2.585 MB / 0.9047 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.268, allocations: 0 / 0.9047 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/1.27, allocations: 1.454 MB / 0.9061 GB, free: 210 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.237e-05/1.27, allocations: 126.8 kB / 0.9062 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.51e-05/1.27, allocations: 8 kB / 0.9062 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/1.27, allocations: 31.97 kB / 0.9062 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.014e-05/1.27, allocations: 51.94 kB / 0.9063 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/1.27, allocations: 15.92 kB / 0.9063 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001554/1.27, allocations: 223.1 kB / 0.9065 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/1.271, allocations: 0 / 0.9065 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006142/1.277, allocations: 3.277 MB / 0.9097 GB, free: 206.6 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.01471/1.291, allocations: 5.892 MB / 0.9155 GB, free: 201.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001644/1.293, allocations: 0.9904 MB / 0.9164 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.293, allocations: 0 / 0.9164 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006809/1.294, allocations: 0.5189 MB / 0.9169 GB, free: 199.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/1.296, allocations: 394.8 kB / 0.9173 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0095/1.305, allocations: 6.179 MB / 0.9234 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/1.305, allocations: 0.8565 MB / 0.9242 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003477/1.306, allocations: 107.3 kB / 0.9243 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/1.306, allocations: 167.4 kB / 0.9245 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of SimCode: time 8.11e-07/1.306, allocations: 0 / 0.9245 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.349/3.655, allocations: 128.7 MB / 1.05 GB, free: 62.69 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.18/26.84, allocations: 11.92 kB / 1.05 GB, free: 62.68 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)