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.0009109/0.000911, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005457/0.005457, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.251/1.251, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04297/0.04297, allocations: 9.063 MB / 279.8 MB, free: 12.14 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.0004755/0.0004755, allocations: 16 kB / 339.8 MB, free: 25.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07434/0.07483, allocations: 49.18 MB / 389 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.2668/0.3416, allocations: 142.3 MB / 0.5189 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2752/0.6169, allocations: 98.1 MB / 0.6146 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005273/0.6174, allocations: 9.219 kB / 0.6147 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.62, allocations: 1.173 MB / 0.6158 GB, free: 1.863 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002909/0.6229, allocations: 1.465 MB / 0.6172 GB, free: 1.855 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05509/0.678, allocations: 25.16 MB / 0.6418 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001694/0.6797, allocations: 1.825 MB / 0.6436 GB, free: 156 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.6799, allocations: 93.34 kB / 0.6437 GB, free: 136 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01355/0.6935, allocations: 9.418 MB / 0.6529 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.6939, allocations: 380.7 kB / 0.6532 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.694, allocations: 18.47 kB / 0.6533 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05048/0.7445, allocations: 32.32 MB / 0.6848 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.7448, allocations: 98.41 kB / 0.6849 GB, free: 10.2 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005029/0.7453, allocations: 307 kB / 0.6852 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03679/0.7821, allocations: 14.08 MB / 0.699 GB, free: 15.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7821, allocations: 0 / 0.699 GB, free: 15.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7821, allocations: 0 / 0.699 GB, free: 15.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.7821, allocations: 0 / 0.699 GB, free: 15.25 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.005757/0.7879, allocations: 2.584 MB / 0.7015 GB, free: 12.72 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.788, allocations: 8.031 kB / 0.7015 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.7881, allocations: 89.69 kB / 0.7016 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.7886, allocations: 83.31 kB / 0.7016 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.7889, allocations: 336 kB / 0.702 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.789, allocations: 28.16 kB / 0.702 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.789, allocations: 29.5 kB / 0.702 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.7902, allocations: 0.5964 MB / 0.7026 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.7902, allocations: 0 / 0.7026 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.7902, allocations: 19.06 kB / 0.7026 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.7903, allocations: 15.91 kB / 0.7026 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.7914, allocations: 0.542 MB / 0.7032 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.7939, allocations: 2.501 MB / 0.7056 GB, free: 8.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.7949, allocations: 0.4902 MB / 0.7061 GB, free: 8.379 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000553/0.7955, allocations: 358.2 kB / 0.7064 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3412/1.137, allocations: 111.4 MB / 0.8153 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/1.137, allocations: 40.11 kB / 0.8153 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.746e-06/1.137, allocations: 0 / 0.8153 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00619/1.143, allocations: 2.515 MB / 0.8177 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/1.143, allocations: 57.16 kB / 0.8178 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/1.143, allocations: 253.7 kB / 0.818 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/1.143, allocations: 33.8 kB / 0.8181 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/1.143, allocations: 189.5 kB / 0.8183 GB, free: 136.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/1.144, allocations: 265.4 kB / 0.8185 GB, free: 136.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.941e-05/1.144, allocations: 62.88 kB / 0.8186 GB, free: 136.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.275e-05/1.144, allocations: 355.2 kB / 0.8189 GB, free: 136 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/1.144, allocations: 293.8 kB / 0.8192 GB, free: 136 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005089/1.145, allocations: 411.4 kB / 0.8196 GB, free: 135.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/1.146, allocations: 0.7345 MB / 0.8203 GB, free: 135.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/1.146, allocations: 2.875 kB / 0.8203 GB, free: 135.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001409/1.147, allocations: 0.8398 MB / 0.8211 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/1.147, allocations: 5.469 kB / 0.8211 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/1.147, allocations: 6.25 kB / 0.8211 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/1.148, allocations: 85.14 kB / 0.8212 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/1.148, allocations: 122.8 kB / 0.8213 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04371/1.192, allocations: 13.22 MB / 0.8342 GB, free: 130 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/1.192, allocations: 52.92 kB / 0.8343 GB, free: 130 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/1.192, allocations: 21.75 kB / 0.8343 GB, free: 130 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 (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.0002377/1.193, allocations: 191.1 kB / 0.8345 GB, free: 129.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/1.193, allocations: 44.12 kB / 0.8345 GB, free: 129.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/1.195, allocations: 1.755 MB / 0.8363 GB, free: 129.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/1.195, allocations: 15.77 kB / 0.8363 GB, free: 129.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.195, allocations: 5.969 kB / 0.8363 GB, free: 129.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001335/1.196, allocations: 1.284 MB / 0.8375 GB, free: 129.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/1.198, allocations: 1.787 MB / 0.8393 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/1.198, allocations: 0 / 0.8393 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003281/1.199, allocations: 89.42 kB / 0.8394 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003395/1.199, allocations: 124.7 kB / 0.8395 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/1.199, allocations: 10.72 kB / 0.8395 GB, free: 128.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/1.2, allocations: 1.982 MB / 0.8414 GB, free: 126.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.2, allocations: 0 / 0.8414 GB, free: 126.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/1.202, allocations: 1.468 MB / 0.8429 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/1.202, allocations: 133.6 kB / 0.843 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/1.202, allocations: 9.562 kB / 0.843 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/1.203, allocations: 55.91 kB / 0.843 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/1.203, allocations: 43.19 kB / 0.8431 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/1.203, allocations: 17.97 kB / 0.8431 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001709/1.203, allocations: 220.8 kB / 0.8433 GB, free: 126.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.203, allocations: 0 / 0.8433 GB, free: 126.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005987/1.209, allocations: 2.986 MB / 0.8462 GB, free: 126.4 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.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.01443/1.223, allocations: 5.676 MB / 0.8518 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001692/1.225, allocations: 1.061 MB / 0.8528 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/1.225, allocations: 0 / 0.8528 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007241/1.226, allocations: 0.5703 MB / 0.8534 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/1.228, allocations: 374.3 kB / 0.8537 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/1.239, allocations: 6.596 MB / 0.8602 GB, free: 122.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/1.24, allocations: 0.8613 MB / 0.861 GB, free: 121.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004389/1.24, allocations: 132.4 kB / 0.8611 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/1.24, allocations: 168.9 kB / 0.8613 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/1.24, allocations: 0 / 0.8613 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1321/1.372, allocations: 117.7 MB / 0.9763 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/1.373, allocations: 250.7 kB / 0.9765 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.48/7.852, allocations: 3.938 kB / 0.9765 GB, free: 15.08 MB / 0.5762 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)