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.005196/0.005196, allocations: 101.1 kB / 15.73 MB, free: 6.469 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.001188/0.001188, allocations: 193.8 kB / 16.67 MB, free: 6.379 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.408/1.408, allocations: 205.1 MB / 222.6 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04933/0.04933, allocations: 9.096 MB / 279 MB, free: 12.1 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.002307/0.002307, allocations: 63.91 kB / 387 MB, free: 8.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3397, allocations: 48.15 MB / 435.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1656/0.5054, allocations: 142.2 MB / 0.5638 GB, free: 2.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4225/0.928, allocations: 97.72 MB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005518/0.9286, allocations: 3.938 kB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002851/0.9315, allocations: 1.367 MB / 0.6606 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004604/0.9361, allocations: 1.649 MB / 0.6622 GB, free: 244 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.08258/1.019, allocations: 29.56 MB / 0.6911 GB, free: 7.086 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003014/1.022, allocations: 1.409 MB / 0.6924 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003716/1.022, allocations: 126 kB / 0.6926 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01894/1.041, allocations: 9.872 MB / 0.7022 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005486/1.042, allocations: 382.8 kB / 0.7026 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.063e-05/1.042, allocations: 40 kB / 0.7026 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0701/1.112, allocations: 36.35 MB / 0.7381 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002925/1.112, allocations: 117.9 kB / 0.7382 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006064/1.113, allocations: 305.7 kB / 0.7385 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05748/1.17, allocations: 14.57 MB / 0.7527 GB, free: 14.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/1.17, allocations: 0 / 0.7527 GB, free: 14.68 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.244e-06/1.17, allocations: 0 / 0.7527 GB, free: 14.68 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.059e-05/1.17, allocations: 0 / 0.7527 GB, free: 14.68 MB / 0.545 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.007775/1.178, allocations: 2.661 MB / 0.7553 GB, free: 11.97 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.178, allocations: 12.03 kB / 0.7554 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.914e-05/1.178, allocations: 86.52 kB / 0.7554 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005698/1.179, allocations: 75.41 kB / 0.7555 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/1.179, allocations: 340 kB / 0.7558 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/1.179, allocations: 28.66 kB / 0.7559 GB, free: 11.4 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.798e-05/1.18, allocations: 35.94 kB / 0.7559 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/1.181, allocations: 0.5879 MB / 0.7565 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/1.181, allocations: 0 / 0.7565 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/1.181, allocations: 16 kB / 0.7565 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/1.181, allocations: 23.38 kB / 0.7565 GB, free: 10.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/1.182, allocations: 0.5169 MB / 0.757 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00265/1.185, allocations: 2.479 MB / 0.7594 GB, free: 7.523 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.186, allocations: 495.9 kB / 0.7599 GB, free: 7.035 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/1.186, allocations: 326.8 kB / 0.7602 GB, free: 6.715 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4991/1.685, allocations: 113.4 MB / 0.871 GB, free: 80.33 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/1.685, allocations: 37 kB / 0.871 GB, free: 80.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.156e-06/1.685, allocations: 0 / 0.871 GB, free: 80.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006486/1.692, allocations: 2.428 MB / 0.8734 GB, free: 79.84 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/1.692, allocations: 57.44 kB / 0.8734 GB, free: 79.77 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/1.692, allocations: 267.9 kB / 0.8737 GB, free: 79.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/1.692, allocations: 34.58 kB / 0.8737 GB, free: 79.63 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/1.692, allocations: 183.6 kB / 0.8739 GB, free: 79.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/1.693, allocations: 267.7 kB / 0.8741 GB, free: 79.38 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.693, allocations: 103.7 kB / 0.8742 GB, free: 79.36 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.558e-05/1.693, allocations: 354.3 kB / 0.8746 GB, free: 79.05 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004891/1.693, allocations: 279.5 kB / 0.8749 GB, free: 79.05 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005329/1.694, allocations: 402.8 kB / 0.8752 GB, free: 78.93 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/1.695, allocations: 0.7112 MB / 0.8759 GB, free: 78.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.695, allocations: 0 / 0.8759 GB, free: 78.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001498/1.696, allocations: 0.8132 MB / 0.8767 GB, free: 78.71 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/1.696, allocations: 10.78 kB / 0.8767 GB, free: 78.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/1.697, allocations: 6.281 kB / 0.8767 GB, free: 78.71 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003033/1.697, allocations: 79.38 kB / 0.8768 GB, free: 78.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/1.697, allocations: 115 kB / 0.8769 GB, free: 78.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05121/1.749, allocations: 14.68 MB / 0.8913 GB, free: 72.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004524/1.749, allocations: 34.39 kB / 0.8913 GB, free: 72.46 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/1.749, allocations: 23.38 kB / 0.8913 GB, free: 72.46 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 (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.00029/1.749, allocations: 183.2 kB / 0.8915 GB, free: 72.35 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/1.75, allocations: 50.44 kB / 0.8915 GB, free: 72.32 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/1.752, allocations: 1.728 MB / 0.8932 GB, free: 72.04 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/1.752, allocations: 9.688 kB / 0.8932 GB, free: 72.04 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/1.752, allocations: 3.516 kB / 0.8932 GB, free: 72.04 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001355/1.753, allocations: 1.258 MB / 0.8945 GB, free: 71.55 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/1.755, allocations: 1.753 MB / 0.8962 GB, free: 71.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/1.755, allocations: 3.469 kB / 0.8962 GB, free: 71.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/1.756, allocations: 87.11 kB / 0.8963 GB, free: 71.18 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002886/1.756, allocations: 111.8 kB / 0.8964 GB, free: 71.16 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/1.756, allocations: 11.41 kB / 0.8964 GB, free: 71.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/1.757, allocations: 2.093 MB / 0.8984 GB, free: 69.28 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.757, allocations: 0 / 0.8984 GB, free: 69.28 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/1.759, allocations: 1.422 MB / 0.8998 GB, free: 69.06 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/1.76, allocations: 118.1 kB / 0.8999 GB, free: 68.94 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.079e-05/1.76, allocations: 14.25 kB / 0.8999 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/1.76, allocations: 26.23 kB / 0.9 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.76, allocations: 47.17 kB / 0.9 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/1.76, allocations: 18.28 kB / 0.9 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002777/1.761, allocations: 226 kB / 0.9002 GB, free: 68.84 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/1.761, allocations: 0 / 0.9002 GB, free: 68.84 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01156/1.772, allocations: 2.987 MB / 0.9032 GB, free: 68.78 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.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.01667/1.789, allocations: 5.626 MB / 0.9087 GB, free: 67.71 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00205/1.791, allocations: 1.052 MB / 0.9097 GB, free: 67.44 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.791, allocations: 8.141 kB / 0.9097 GB, free: 67.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000792/1.792, allocations: 0.5608 MB / 0.9102 GB, free: 67.31 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/1.794, allocations: 388.8 kB / 0.9106 GB, free: 67.23 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/1.807, allocations: 6.254 MB / 0.9167 GB, free: 64.82 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/1.808, allocations: 0.854 MB / 0.9175 GB, free: 64.08 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004643/1.808, allocations: 132.1 kB / 0.9177 GB, free: 63.99 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/1.808, allocations: 172.7 kB / 0.9178 GB, free: 63.95 MB / 0.6075 GB Notification: Performance of SimCode: time 1.423e-06/1.808, allocations: 0 / 0.9178 GB, free: 63.95 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1925/2.001, allocations: 119 MB / 1.034 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/19.78, allocations: 10.86 kB / 1.034 GB, free: 2.375 MB / 0.6544 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)