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.0009167/0.0009167, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.00157/0.00157, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.913/0.913, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.02879/0.02879, allocations: 7.526 MB / 266.7 MB, free: 6.195 MB / 250.7 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 1.212e-06/1.212e-06, allocations: 0 / 391.8 MB, free: 6.289 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/2.068e-05, allocations: 5.234 kB / 391.8 MB, free: 6.285 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.2486/0.2486, allocations: 115 MB / 0.4949 GB, free: 24.08 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06561/0.3142, allocations: 98.63 MB / 0.5912 GB, free: 8.09 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004841/0.3147, allocations: 7.938 kB / 0.5912 GB, free: 8.082 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.3168, allocations: 1.247 MB / 0.5924 GB, free: 6.832 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002549/0.3194, allocations: 1.602 MB / 0.594 GB, free: 5.223 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05423/0.3736, allocations: 32.45 MB / 0.6257 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001651/0.3753, allocations: 1.429 MB / 0.6271 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.3755, allocations: 93.7 kB / 0.6272 GB, free: 3.184 MB / 0.4948 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.2247/0.6002, allocations: 12.18 MB / 0.6391 GB, free: 29.91 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.6006, allocations: 341.5 kB / 0.6394 GB, free: 29.9 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.6007, allocations: 41.88 kB / 0.6394 GB, free: 29.9 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03915/0.6398, allocations: 26.36 MB / 0.6652 GB, free: 29.83 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.64, allocations: 132.7 kB / 0.6653 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003756/0.6404, allocations: 218.3 kB / 0.6655 GB, free: 29.81 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03243/0.6728, allocations: 14.77 MB / 0.68 GB, free: 29.1 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.6728, allocations: 0 / 0.68 GB, free: 29.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.913e-06/0.6728, allocations: 3.938 kB / 0.68 GB, free: 29.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.6728, allocations: 1.688 kB / 0.68 GB, free: 29.1 MB / 0.4948 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.005651/0.6785, allocations: 2.582 MB / 0.6825 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.6785, allocations: 11.75 kB / 0.6825 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.351e-05/0.6786, allocations: 83.16 kB / 0.6826 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003733/0.679, allocations: 89.19 kB / 0.6827 GB, free: 27.58 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.6794, allocations: 284.2 kB / 0.6829 GB, free: 27.42 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.6794, allocations: 34 kB / 0.683 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.6794, allocations: 35.62 kB / 0.683 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.6802, allocations: 0.7632 MB / 0.6837 GB, free: 27.13 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.6802, allocations: 0 / 0.6837 GB, free: 27.13 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.6802, allocations: 14.34 kB / 0.6838 GB, free: 27.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.6802, allocations: 18.7 kB / 0.6838 GB, free: 27.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007242/0.681, allocations: 0.5527 MB / 0.6843 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.6825, allocations: 1.713 MB / 0.686 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005856/0.6831, allocations: 477.9 kB / 0.6864 GB, free: 26.29 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.6833, allocations: 311.6 kB / 0.6867 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09271/0.776, allocations: 44.03 MB / 0.7297 GB, free: 9.316 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.7761, allocations: 40.5 kB / 0.7298 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=77): time 2.846e-06/0.7761, allocations: 0 / 0.7298 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of matching and sorting (n=81): time 0.003776/0.7799, allocations: 2.24 MB / 0.732 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.7799, allocations: 59.16 kB / 0.732 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.7801, allocations: 260.3 kB / 0.7323 GB, free: 7.316 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.7801, allocations: 37.33 kB / 0.7323 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/0.7802, allocations: 200.1 kB / 0.7325 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.7803, allocations: 270.9 kB / 0.7328 GB, free: 6.883 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.06e-05/0.7804, allocations: 96.17 kB / 0.7328 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.932e-05/0.7805, allocations: 351.9 kB / 0.7332 GB, free: 6.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.7808, allocations: 292 kB / 0.7335 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.7811, allocations: 408.8 kB / 0.7338 GB, free: 5.988 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006261/0.7817, allocations: 0.7085 MB / 0.7345 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.7817, allocations: 0 / 0.7345 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008272/0.7826, allocations: 0.823 MB / 0.7353 GB, free: 4.938 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.7826, allocations: 8 kB / 0.7354 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.7826, allocations: 1.406 kB / 0.7354 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001629/0.7827, allocations: 69.16 kB / 0.7354 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.7831, allocations: 141.5 kB / 0.7356 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03743/0.8206, allocations: 22.78 MB / 0.7578 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.8209, allocations: 27.88 kB / 0.7578 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.8209, allocations: 19.88 kB / 0.7578 GB, free: 14.52 MB / 0.5417 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.0002374/0.8211, allocations: 191.4 kB / 0.758 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.8212, allocations: 55.62 kB / 0.7581 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.8226, allocations: 1.752 MB / 0.7598 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.8226, allocations: 14.81 kB / 0.7598 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.8226, allocations: 3.938 kB / 0.7598 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009302/0.8235, allocations: 1.315 MB / 0.7611 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.825, allocations: 1.708 MB / 0.7628 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.825, allocations: 0 / 0.7628 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.8253, allocations: 79.16 kB / 0.7628 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002123/0.8255, allocations: 163.9 kB / 0.763 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.8255, allocations: 13.8 kB / 0.763 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.8266, allocations: 2.469 MB / 0.7654 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.8266, allocations: 0 / 0.7654 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.8278, allocations: 1.41 MB / 0.7668 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.8279, allocations: 39.69 kB / 0.7668 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.8279, allocations: 15.73 kB / 0.7668 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.828, allocations: 23.73 kB / 0.7669 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/0.8281, allocations: 46.59 kB / 0.7669 GB, free: 6.973 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.8281, allocations: 16.88 kB / 0.7669 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001573/0.8283, allocations: 224.8 kB / 0.7671 GB, free: 6.777 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3e-08/0.8283, allocations: 0 / 0.7671 GB, free: 6.777 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007788/0.8361, allocations: 3.572 MB / 0.7706 GB, free: 3.305 MB / 0.5417 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.01806/0.8542, allocations: 6.927 MB / 0.7774 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001643/0.8558, allocations: 1.023 MB / 0.7784 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.8558, allocations: 0 / 0.7784 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000513/0.8563, allocations: 0.4886 MB / 0.7789 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.8576, allocations: 394.5 kB / 0.7792 GB, free: 11.87 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.868, allocations: 6.314 MB / 0.7854 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.8682, allocations: 246.2 kB / 0.7857 GB, free: 6.219 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003405/0.8685, allocations: 138.4 kB / 0.7858 GB, free: 6.086 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.8687, allocations: 166.1 kB / 0.7859 GB, free: 6.039 MB / 0.5573 GB Notification: Performance of SimCode: time 1.213e-06/0.8687, allocations: 8 kB / 0.7859 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3309/1.2, allocations: 135.9 MB / 0.9187 GB, free: 218.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/13.35, allocations: 18.86 kB / 0.9187 GB, free: 218.4 MB / 0.6198 GB " [Timeout remaining time 646] (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: 20.454171138815582] Failed to read output from testmodel.py, exit status != 0: 13.525111916474998 13.5342831 12.859803789 Calling exit ...