Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.001437/0.001437, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 191.5 kB / 16.66 MB, free: 6.574 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.256/1.256, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04707/0.04707, allocations: 9.088 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.001905/0.001905, allocations: 75.88 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2161, allocations: 48.15 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1238/0.34, allocations: 128.9 MB / 0.5509 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2764/0.6164, allocations: 111.1 MB / 0.6593 GB, free: 344 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004663/0.6169, allocations: 7.125 kB / 0.6593 GB, free: 344 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.6194, allocations: 1.367 MB / 0.6607 GB, free: 332 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002672/0.6221, allocations: 1.661 MB / 0.6623 GB, free: 284 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.05996/0.682, allocations: 30.16 MB / 0.6917 GB, free: 6.434 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.6837, allocations: 1.397 MB / 0.6931 GB, free: 5.414 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.6839, allocations: 130.2 kB / 0.6932 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01581/0.6997, allocations: 11.68 MB / 0.7046 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.7002, allocations: 384.2 kB / 0.705 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.252e-05/0.7003, allocations: 44 kB / 0.705 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0568/0.7571, allocations: 36.96 MB / 0.7411 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.7573, allocations: 124.7 kB / 0.7413 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004548/0.7578, allocations: 310.3 kB / 0.7416 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03231/0.7901, allocations: 14.55 MB / 0.7558 GB, free: 11.49 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7901, allocations: 0 / 0.7558 GB, free: 11.49 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7901, allocations: 0 / 0.7558 GB, free: 11.49 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.7901, allocations: 0 / 0.7558 GB, free: 11.49 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.004512/0.7947, allocations: 2.677 MB / 0.7584 GB, free: 8.762 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.7947, allocations: 8.031 kB / 0.7584 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.506e-05/0.7948, allocations: 86.52 kB / 0.7585 GB, free: 8.66 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/0.7953, allocations: 87.64 kB / 0.7586 GB, free: 8.574 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.7958, allocations: 350.3 kB / 0.7589 GB, free: 8.195 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.7959, allocations: 32.59 kB / 0.7589 GB, free: 8.164 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.7959, allocations: 35.94 kB / 0.759 GB, free: 8.129 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.7971, allocations: 0.5951 MB / 0.7595 GB, free: 7.516 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.7971, allocations: 7.406 kB / 0.7595 GB, free: 7.512 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.7972, allocations: 16 kB / 0.7596 GB, free: 7.496 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.7972, allocations: 18.19 kB / 0.7596 GB, free: 7.48 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.7984, allocations: 0.5415 MB / 0.7601 GB, free: 6.941 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.8009, allocations: 2.474 MB / 0.7625 GB, free: 4.266 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.8019, allocations: 491.2 kB / 0.763 GB, free: 3.777 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005288/0.8025, allocations: 338 kB / 0.7633 GB, free: 3.445 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3413/1.144, allocations: 139 MB / 0.899 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/1.144, allocations: 34.56 kB / 0.8991 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.124e-06/1.144, allocations: 0 / 0.8991 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.004569/1.148, allocations: 2.341 MB / 0.9014 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.692e-05/1.148, allocations: 61.25 kB / 0.9014 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/1.149, allocations: 260.7 kB / 0.9017 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/1.149, allocations: 29.7 kB / 0.9017 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/1.149, allocations: 197.8 kB / 0.9019 GB, free: 211.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.49e-05/1.149, allocations: 279 kB / 0.9022 GB, free: 211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/1.149, allocations: 100.8 kB / 0.9022 GB, free: 210.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.738e-05/1.149, allocations: 350.8 kB / 0.9026 GB, free: 210.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003935/1.149, allocations: 275.3 kB / 0.9028 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/1.15, allocations: 395.7 kB / 0.9032 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/1.151, allocations: 0.6875 MB / 0.9039 GB, free: 209.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/1.151, allocations: 0 / 0.9039 GB, free: 209.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00109/1.152, allocations: 0.802 MB / 0.9047 GB, free: 208.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/1.152, allocations: 8.656 kB / 0.9047 GB, free: 208.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/1.152, allocations: 3.75 kB / 0.9047 GB, free: 208.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/1.152, allocations: 65.62 kB / 0.9048 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/1.153, allocations: 139.8 kB / 0.9049 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0604/1.213, allocations: 22.97 MB / 0.9273 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/1.213, allocations: 34.31 kB / 0.9274 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/1.213, allocations: 16 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/1.213, allocations: 202.5 kB / 0.9276 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/1.214, allocations: 51.59 kB / 0.9276 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/1.215, allocations: 1.703 MB / 0.9293 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/1.215, allocations: 11.98 kB / 0.9293 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/1.215, allocations: 0 / 0.9293 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001118/1.216, allocations: 1.296 MB / 0.9306 GB, free: 181.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/1.218, allocations: 1.751 MB / 0.9323 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/1.218, allocations: 4 kB / 0.9323 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/1.218, allocations: 79.88 kB / 0.9323 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/1.218, allocations: 166.1 kB / 0.9325 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/1.218, allocations: 11.94 kB / 0.9325 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008831/1.219, allocations: 2.564 MB / 0.935 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.219, allocations: 0 / 0.935 GB, free: 176.4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/1.221, allocations: 1.39 MB / 0.9364 GB, free: 175 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/1.221, allocations: 127.3 kB / 0.9365 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/1.221, allocations: 8 kB / 0.9365 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/1.221, allocations: 19.98 kB / 0.9365 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/1.221, allocations: 47.92 kB / 0.9366 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/1.221, allocations: 8 kB / 0.9366 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001409/1.221, allocations: 227.1 kB / 0.9368 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.221, allocations: 4 kB / 0.9368 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005385/1.227, allocations: 3.572 MB / 0.9403 GB, free: 171.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01228/1.239, allocations: 6.503 MB / 0.9466 GB, free: 165.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001674/1.241, allocations: 1.057 MB / 0.9477 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/1.241, allocations: 0.5625 kB / 0.9477 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005974/1.241, allocations: 0.5072 MB / 0.9482 GB, free: 163.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/1.243, allocations: 391.6 kB / 0.9485 GB, free: 163.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00716/1.25, allocations: 6.289 MB / 0.9547 GB, free: 156.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/1.25, allocations: 0.8526 MB / 0.9555 GB, free: 156 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002992/1.251, allocations: 131.2 kB / 0.9556 GB, free: 155.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/1.251, allocations: 171.4 kB / 0.9558 GB, free: 155.7 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/1.251, allocations: 0 / 0.9558 GB, free: 155.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.417/4.668, allocations: 133.3 MB / 1.086 GB, free: 22.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.92/27.59, allocations: 4 kB / 1.086 GB, free: 22.2 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)