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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 213.7 kB / 22.25 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.04988/0.04988, allocations: 9.146 MB / 321.6 MB, free: 10.21 MB / 254.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 67.91 kB / 446.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.108, allocations: 54.94 MB / 0.4897 GB, free: 9.492 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3343/0.4423, allocations: 115.2 MB / 0.6022 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.11/0.5523, allocations: 98.63 MB / 0.6985 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006501/0.553, allocations: 7.938 kB / 0.6986 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.5562, allocations: 1.23 MB / 0.6998 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.5604, allocations: 1.567 MB / 0.7013 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.331/0.8914, allocations: 31.95 MB / 0.7325 GB, free: 22.03 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001655/0.8931, allocations: 1.412 MB / 0.7339 GB, free: 22.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.8933, allocations: 82.2 kB / 0.7339 GB, free: 22.02 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:621:5-621:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.01761/0.9109, allocations: 11.89 MB / 0.7456 GB, free: 21.74 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004913/0.9114, allocations: 373.6 kB / 0.7459 GB, free: 21.74 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.198e-05/0.9114, allocations: 46.94 kB / 0.746 GB, free: 21.74 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04081/0.9522, allocations: 26.17 MB / 0.7715 GB, free: 21.66 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002756/0.9525, allocations: 122.7 kB / 0.7716 GB, free: 21.66 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.9531, allocations: 263.1 kB / 0.7719 GB, free: 21.66 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03117/0.9842, allocations: 12.59 MB / 0.7842 GB, free: 19.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.9842, allocations: 0.6562 kB / 0.7842 GB, free: 19.47 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.315e-06/0.9842, allocations: 0 / 0.7842 GB, free: 19.47 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.9842, allocations: 0 / 0.7842 GB, free: 19.47 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.005728/0.99, allocations: 2.594 MB / 0.7867 GB, free: 17.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.99, allocations: 8.938 kB / 0.7867 GB, free: 17.88 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.9901, allocations: 84.23 kB / 0.7868 GB, free: 17.83 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006011/0.9907, allocations: 93.53 kB / 0.7869 GB, free: 17.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.9912, allocations: 281.9 kB / 0.7872 GB, free: 17.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.9912, allocations: 29.47 kB / 0.7872 GB, free: 17.6 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/0.9913, allocations: 33.06 kB / 0.7872 GB, free: 17.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.9925, allocations: 0.7635 MB / 0.788 GB, free: 17.22 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.9925, allocations: 3.281 kB / 0.788 GB, free: 17.22 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.9926, allocations: 15.62 kB / 0.788 GB, free: 17.22 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.9926, allocations: 20.72 kB / 0.788 GB, free: 17.22 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.9937, allocations: 0.5534 MB / 0.7885 GB, free: 17.11 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.9956, allocations: 1.733 MB / 0.7902 GB, free: 16.12 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009213/0.9965, allocations: 470.6 kB / 0.7907 GB, free: 16.04 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004597/0.997, allocations: 322 kB / 0.791 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1924/1.189, allocations: 44.03 MB / 0.834 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/1.189, allocations: 38.5 kB / 0.834 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=77): time 2.765e-06/1.189, allocations: 0 / 0.834 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of matching and sorting (n=81): time 0.005828/1.195, allocations: 2.245 MB / 0.8362 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/1.195, allocations: 55.41 kB / 0.8363 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/1.196, allocations: 271.1 kB / 0.8365 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/1.196, allocations: 36.36 kB / 0.8366 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/1.196, allocations: 191.3 kB / 0.8367 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/1.196, allocations: 275.1 kB / 0.837 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/1.196, allocations: 106.2 kB / 0.8371 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001589/1.196, allocations: 354.4 kB / 0.8374 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/1.197, allocations: 281.8 kB / 0.8377 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005974/1.197, allocations: 405.5 kB / 0.8381 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/1.198, allocations: 0.715 MB / 0.8388 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.198, allocations: 0 / 0.8388 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001433/1.2, allocations: 0.8196 MB / 0.8396 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/1.2, allocations: 10.81 kB / 0.8396 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/1.2, allocations: 4 kB / 0.8396 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/1.2, allocations: 65.17 kB / 0.8397 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007065/1.201, allocations: 140.7 kB / 0.8398 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07319/1.274, allocations: 22.79 MB / 0.8621 GB, free: 15.49 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/1.275, allocations: 23.11 kB / 0.8621 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/1.275, allocations: 23.48 kB / 0.8621 GB, free: 15.46 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.0002903/1.275, allocations: 185.9 kB / 0.8623 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.985e-05/1.275, allocations: 51.34 kB / 0.8623 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/1.277, allocations: 1.744 MB / 0.864 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.338e-05/1.277, allocations: 14.98 kB / 0.8641 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/1.277, allocations: 0 / 0.8641 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001705/1.279, allocations: 1.322 MB / 0.8653 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/1.282, allocations: 1.704 MB / 0.867 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.282, allocations: 4 kB / 0.867 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/1.282, allocations: 71.95 kB / 0.8671 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003366/1.282, allocations: 172.1 kB / 0.8672 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/1.282, allocations: 11.75 kB / 0.8673 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00196/1.284, allocations: 2.477 MB / 0.8697 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.284, allocations: 0 / 0.8697 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/1.286, allocations: 1.413 MB / 0.8711 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/1.287, allocations: 43.62 kB / 0.8711 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6e-05/1.287, allocations: 12.19 kB / 0.8711 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/1.287, allocations: 22.16 kB / 0.8711 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/1.287, allocations: 53.09 kB / 0.8712 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/1.287, allocations: 15.56 kB / 0.8712 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002351/1.287, allocations: 221.4 kB / 0.8714 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.287, allocations: 0 / 0.8714 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009958/1.297, allocations: 3.571 MB / 0.8749 GB, free: 4.254 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.02204/1.319, allocations: 6.541 MB / 0.8813 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002483/1.322, allocations: 1.018 MB / 0.8823 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.322, allocations: 0 / 0.8823 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008304/1.323, allocations: 498.8 kB / 0.8828 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/1.325, allocations: 407.1 kB / 0.8831 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/1.339, allocations: 6.35 MB / 0.8893 GB, free: 7.809 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/1.339, allocations: 254.2 kB / 0.8896 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0005037/1.34, allocations: 138.3 kB / 0.8897 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/1.34, allocations: 164.4 kB / 0.8899 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of SimCode: time 6.92e-07/1.34, allocations: 0 / 0.8899 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4559/1.796, allocations: 135.3 MB / 1.022 GB, free: 249.8 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.8/21.59, allocations: 8.719 kB / 1.022 GB, free: 249.8 MB / 0.7012 GB " [Timeout remaining time 638] (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 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.599675382953137] Failed to read output from testmodel.py, exit status != 0: 21.809052110183984 21.819764496 20.833199631 Calling exit ...