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.001002/0.001003, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005889/0.00589, allocations: 170.3 kB / 16.27 MB, free: 6.648 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.234/1.234, allocations: 205.4 MB / 222.4 MB, free: 5.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04296/0.04296, allocations: 9.075 MB / 279.8 MB, free: 12.39 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.0004623/0.0004624, allocations: 15.98 kB / 339.8 MB, free: 25.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06755/0.06802, allocations: 49.2 MB / 389 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.2628/0.3308, allocations: 142.3 MB / 0.5189 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2876/0.6184, allocations: 98.11 MB / 0.6147 GB, free: 1.824 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005528/0.619, allocations: 5.156 kB / 0.6147 GB, free: 1.824 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002731/0.6218, allocations: 1.171 MB / 0.6158 GB, free: 1.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003124/0.6249, allocations: 1.462 MB / 0.6172 GB, free: 1.812 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0644/0.6893, allocations: 25.16 MB / 0.6418 GB, free: 0.707 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00214/0.6915, allocations: 1.83 MB / 0.6436 GB, free: 140 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.6917, allocations: 99 kB / 0.6437 GB, free: 116 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01384/0.7055, allocations: 9.403 MB / 0.6529 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004398/0.706, allocations: 388 kB / 0.6532 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.7061, allocations: 18.06 kB / 0.6533 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0457/0.7518, allocations: 28.19 MB / 0.6808 GB, free: 12.94 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.752, allocations: 101.6 kB / 0.6809 GB, free: 12.89 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005497/0.7526, allocations: 301.2 kB / 0.6812 GB, free: 12.71 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03606/0.7887, allocations: 12.21 MB / 0.6931 GB, free: 3.324 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.7887, allocations: 2.734 kB / 0.6931 GB, free: 3.324 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7887, allocations: 0 / 0.6931 GB, free: 3.324 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.7887, allocations: 0 / 0.6931 GB, free: 3.324 MB / 478.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.005545/0.7943, allocations: 2.201 MB / 0.6953 GB, free: 1.16 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.7943, allocations: 8.031 kB / 0.6953 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.488e-05/0.7944, allocations: 88.27 kB / 0.6953 GB, free: 1.082 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005088/0.795, allocations: 84.52 kB / 0.6954 GB, free: 1.004 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.7953, allocations: 335.1 kB / 0.6957 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.7954, allocations: 32.22 kB / 0.6958 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.7955, allocations: 37.69 kB / 0.6958 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.7966, allocations: 0.6005 MB / 0.6964 GB, free: 216 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.7967, allocations: 0 / 0.6964 GB, free: 216 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.7967, allocations: 13.06 kB / 0.6964 GB, free: 212 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.7967, allocations: 17.47 kB / 0.6964 GB, free: 200 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.7979, allocations: 0.5487 MB / 0.697 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.8002, allocations: 2.507 MB / 0.6994 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.8013, allocations: 0.5115 MB / 0.6999 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005139/0.8018, allocations: 352.5 kB / 0.7002 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3239/1.126, allocations: 119.3 MB / 0.8167 GB, free: 280.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/1.126, allocations: 38.95 kB / 0.8168 GB, free: 280.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.805e-06/1.126, allocations: 4.469 kB / 0.8168 GB, free: 280.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005482/1.131, allocations: 2.478 MB / 0.8192 GB, free: 279.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/1.131, allocations: 54.94 kB / 0.8192 GB, free: 279.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/1.132, allocations: 252.3 kB / 0.8195 GB, free: 279.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/1.132, allocations: 32.92 kB / 0.8195 GB, free: 279.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/1.132, allocations: 200.1 kB / 0.8197 GB, free: 279.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/1.132, allocations: 258.8 kB / 0.8199 GB, free: 279.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/1.132, allocations: 63.02 kB / 0.82 GB, free: 279.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.193e-05/1.132, allocations: 346.6 kB / 0.8203 GB, free: 278.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/1.132, allocations: 291.5 kB / 0.8206 GB, free: 278.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005191/1.133, allocations: 406.6 kB / 0.821 GB, free: 278.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/1.134, allocations: 0.7187 MB / 0.8217 GB, free: 278.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/1.134, allocations: 1.969 kB / 0.8217 GB, free: 278.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001382/1.135, allocations: 0.836 MB / 0.8225 GB, free: 277.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.135, allocations: 9.656 kB / 0.8225 GB, free: 277.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/1.135, allocations: 3.281 kB / 0.8225 GB, free: 277.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/1.136, allocations: 119.8 kB / 0.8226 GB, free: 277.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/1.136, allocations: 117.8 kB / 0.8228 GB, free: 277.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09093/1.227, allocations: 24.64 MB / 0.8468 GB, free: 259.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/1.228, allocations: 59.86 kB / 0.8469 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/1.228, allocations: 16 kB / 0.8469 GB, free: 259.1 MB / 0.5762 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.000273/1.228, allocations: 189.8 kB / 0.8471 GB, free: 258.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.843e-05/1.228, allocations: 43.44 kB / 0.8471 GB, free: 258.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/1.23, allocations: 1.726 MB / 0.8488 GB, free: 257.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/1.23, allocations: 14.39 kB / 0.8488 GB, free: 257.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.23, allocations: 0.8125 kB / 0.8488 GB, free: 257.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001284/1.232, allocations: 1.299 MB / 0.8501 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/1.234, allocations: 1.767 MB / 0.8518 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/1.234, allocations: 0 / 0.8518 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/1.234, allocations: 79.92 kB / 0.8519 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003912/1.234, allocations: 206.3 kB / 0.8521 GB, free: 253.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/1.234, allocations: 17.05 kB / 0.8521 GB, free: 253.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/1.235, allocations: 2.484 MB / 0.8545 GB, free: 250.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.235, allocations: 0 / 0.8545 GB, free: 250.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/1.237, allocations: 1.493 MB / 0.856 GB, free: 249.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/1.237, allocations: 140.3 kB / 0.8561 GB, free: 249.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/1.238, allocations: 12 kB / 0.8561 GB, free: 249.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/1.238, allocations: 43.84 kB / 0.8562 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/1.238, allocations: 45.02 kB / 0.8562 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/1.238, allocations: 13.3 kB / 0.8562 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001707/1.238, allocations: 223.1 kB / 0.8564 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.238, allocations: 4 kB / 0.8564 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006424/1.245, allocations: 2.894 MB / 0.8593 GB, free: 246.3 MB / 0.5762 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.01499/1.26, allocations: 5.449 MB / 0.8646 GB, free: 241.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001773/1.261, allocations: 1.018 MB / 0.8656 GB, free: 240.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.261, allocations: 4.062 kB / 0.8656 GB, free: 240.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007201/1.262, allocations: 0.5345 MB / 0.8661 GB, free: 239.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/1.264, allocations: 383.8 kB / 0.8665 GB, free: 239.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/1.274, allocations: 6.323 MB / 0.8726 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/1.275, allocations: 0.8487 MB / 0.8735 GB, free: 232 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003954/1.275, allocations: 117.6 kB / 0.8736 GB, free: 231.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/1.275, allocations: 167.3 kB / 0.8737 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/1.275, allocations: 0 / 0.8737 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1316/1.407, allocations: 119.9 MB / 0.9908 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/1.407, allocations: 262.8 kB / 0.991 GB, free: 111.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.44/7.847, allocations: 0 / 0.991 GB, free: 111.3 MB / 0.5762 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)