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.005192/0.005193, allocations: 99.73 kB / 15.73 MB, free: 5.977 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.001506/0.001506, allocations: 197 kB / 16.68 MB, free: 5.906 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.293/1.293, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04812/0.04812, allocations: 9.1 MB / 279 MB, free: 12.04 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.002332/0.002332, allocations: 75.89 kB / 387 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2093, allocations: 48.15 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.141/0.3504, allocations: 142.2 MB / 0.5638 GB, free: 2.094 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2686/0.619, allocations: 97.7 MB / 0.6593 GB, free: 352 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004238/0.6195, allocations: 10.41 kB / 0.6593 GB, free: 352 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002414/0.622, allocations: 1.367 MB / 0.6606 GB, free: 344 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.6247, allocations: 1.654 MB / 0.6622 GB, free: 296 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.06129/0.686, allocations: 29.54 MB / 0.6911 GB, free: 6.965 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.6877, allocations: 1.418 MB / 0.6924 GB, free: 5.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.6879, allocations: 125.1 kB / 0.6926 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01488/0.7028, allocations: 9.858 MB / 0.7022 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004996/0.7033, allocations: 386.7 kB / 0.7026 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.004e-05/0.7034, allocations: 40 kB / 0.7026 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05829/0.7617, allocations: 36.35 MB / 0.7381 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.762, allocations: 126.8 kB / 0.7382 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004713/0.7625, allocations: 298.2 kB / 0.7385 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03847/0.8009, allocations: 14.6 MB / 0.7528 GB, free: 14.55 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.801, allocations: 4 kB / 0.7528 GB, free: 14.55 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.633e-06/0.801, allocations: 0 / 0.7528 GB, free: 14.55 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.916e-06/0.801, allocations: 0 / 0.7528 GB, free: 14.55 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.005713/0.8067, allocations: 2.767 MB / 0.7555 GB, free: 11.73 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.8068, allocations: 12.03 kB / 0.7555 GB, free: 11.72 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.264e-05/0.8069, allocations: 86.45 kB / 0.7556 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004854/0.8074, allocations: 84.52 kB / 0.7556 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.8078, allocations: 341.8 kB / 0.756 GB, free: 11.17 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.8078, allocations: 28.66 kB / 0.756 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.8079, allocations: 35.94 kB / 0.756 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.8091, allocations: 0.585 MB / 0.7566 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.8091, allocations: 0 / 0.7566 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.8091, allocations: 16 kB / 0.7566 GB, free: 10.49 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.8091, allocations: 23.5 kB / 0.7566 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.8103, allocations: 0.5064 MB / 0.7571 GB, free: 9.969 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.8129, allocations: 2.499 MB / 0.7596 GB, free: 7.254 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.8139, allocations: 494.1 kB / 0.76 GB, free: 6.766 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005328/0.8145, allocations: 322.3 kB / 0.7604 GB, free: 6.449 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2836/1.098, allocations: 113.4 MB / 0.8711 GB, free: 238 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/1.098, allocations: 37.22 kB / 0.8712 GB, free: 238 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.766e-06/1.098, allocations: 1.531 kB / 0.8712 GB, free: 238 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005535/1.104, allocations: 2.435 MB / 0.8735 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/1.104, allocations: 55.38 kB / 0.8736 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/1.104, allocations: 263.8 kB / 0.8738 GB, free: 236.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/1.104, allocations: 29.7 kB / 0.8739 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/1.104, allocations: 197.1 kB / 0.8741 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/1.104, allocations: 279.6 kB / 0.8743 GB, free: 236 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/1.104, allocations: 104.7 kB / 0.8744 GB, free: 236 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.944e-05/1.104, allocations: 353.2 kB / 0.8748 GB, free: 235.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/1.105, allocations: 281.1 kB / 0.875 GB, free: 235.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/1.105, allocations: 398.9 kB / 0.8754 GB, free: 235.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008944/1.106, allocations: 0.7136 MB / 0.8761 GB, free: 234.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1.106, allocations: 3.656 kB / 0.8761 GB, free: 234.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00125/1.107, allocations: 0.8183 MB / 0.8769 GB, free: 234.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/1.107, allocations: 3.969 kB / 0.8769 GB, free: 234.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.107, allocations: 7.25 kB / 0.8769 GB, free: 234.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002578/1.108, allocations: 77.25 kB / 0.877 GB, free: 234.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/1.108, allocations: 119.2 kB / 0.8771 GB, free: 234.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04487/1.153, allocations: 14.69 MB / 0.8915 GB, free: 224.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/1.153, allocations: 27.97 kB / 0.8915 GB, free: 224.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/1.153, allocations: 19.53 kB / 0.8915 GB, free: 224.3 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.0001946/1.154, allocations: 190.8 kB / 0.8917 GB, free: 224.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/1.154, allocations: 43.72 kB / 0.8917 GB, free: 224 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/1.155, allocations: 1.731 MB / 0.8934 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/1.155, allocations: 11.91 kB / 0.8934 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/1.155, allocations: 0.875 kB / 0.8934 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001163/1.157, allocations: 1.269 MB / 0.8947 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/1.158, allocations: 1.749 MB / 0.8964 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/1.158, allocations: 0 / 0.8964 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/1.159, allocations: 83.88 kB / 0.8965 GB, free: 219 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002461/1.159, allocations: 120.4 kB / 0.8966 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/1.159, allocations: 18.23 kB / 0.8966 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009351/1.16, allocations: 2.081 MB / 0.8986 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/1.16, allocations: 0 / 0.8986 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/1.162, allocations: 1.433 MB / 0.9 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/1.162, allocations: 123.1 kB / 0.9001 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/1.162, allocations: 8 kB / 0.9001 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/1.162, allocations: 23.97 kB / 0.9002 GB, free: 215 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.157e-05/1.162, allocations: 55.81 kB / 0.9002 GB, free: 215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/1.162, allocations: 15.98 kB / 0.9002 GB, free: 215 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001487/1.162, allocations: 222.1 kB / 0.9004 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/1.162, allocations: 0 / 0.9004 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005249/1.168, allocations: 3.044 MB / 0.9034 GB, free: 212.2 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.01229/1.18, allocations: 5.674 MB / 0.909 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001631/1.182, allocations: 1.056 MB / 0.91 GB, free: 205.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.182, allocations: 0 / 0.91 GB, free: 205.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006713/1.182, allocations: 0.5541 MB / 0.9105 GB, free: 205.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/1.184, allocations: 392.4 kB / 0.9109 GB, free: 204.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0094/1.193, allocations: 6.323 MB / 0.9171 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/1.194, allocations: 0.853 MB / 0.9179 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003375/1.194, allocations: 138 kB / 0.918 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/1.194, allocations: 175.4 kB / 0.9182 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/1.194, allocations: 0 / 0.9182 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.512/7.706, allocations: 118.7 MB / 1.034 GB, free: 78.44 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/30.49, allocations: 11.64 kB / 1.034 GB, free: 78.43 MB / 0.6075 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)