Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.001684/0.001684, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002109/0.002109, allocations: 216.4 kB / 22.26 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 207.6 MB / 233 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05314/0.05314, allocations: 9.158 MB / 294.4 MB, free: 12.7 MB / 238.1 MB " [Timeout remaining time 180] 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.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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 64.31 kB / 411.1 MB, free: 46.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07533/0.07762, allocations: 50.76 MB / 461.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.3812/0.4588, allocations: 128.8 MB / 0.5768 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.119/0.5779, allocations: 110.5 MB / 0.6847 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005857/0.5785, allocations: 7.938 kB / 0.6847 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003551/0.582, allocations: 1.457 MB / 0.6861 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004015/0.586, allocations: 1.716 MB / 0.6878 GB, free: 5.883 MB / 0.4981 GB [/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.09012/0.6762, allocations: 30.71 MB / 0.7178 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002564/0.6787, allocations: 1.347 MB / 0.7191 GB, free: 5.715 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.679, allocations: 81.91 kB / 0.7192 GB, free: 5.629 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:620:5-620:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.01788/0.6969, allocations: 9.001 MB / 0.728 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006647/0.6975, allocations: 382.5 kB / 0.7283 GB, free: 12.23 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.585e-05/0.6976, allocations: 44 kB / 0.7284 GB, free: 12.19 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4009/1.099, allocations: 35.07 MB / 0.7626 GB, free: 47.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003167/1.099, allocations: 123.4 kB / 0.7627 GB, free: 47.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004901/1.099, allocations: 306.8 kB / 0.763 GB, free: 47.95 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04238/1.142, allocations: 14.2 MB / 0.7769 GB, free: 47.54 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.142, allocations: 2.281 kB / 0.7769 GB, free: 47.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.313e-06/1.142, allocations: 1.094 kB / 0.7769 GB, free: 47.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.162e-05/1.142, allocations: 0 / 0.7769 GB, free: 47.54 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.006725/1.148, allocations: 2.598 MB / 0.7794 GB, free: 46.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/1.149, allocations: 14.14 kB / 0.7794 GB, free: 46.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.502e-05/1.149, allocations: 87.45 kB / 0.7795 GB, free: 46.07 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006284/1.149, allocations: 92.42 kB / 0.7796 GB, free: 46.05 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/1.15, allocations: 278.4 kB / 0.7799 GB, free: 45.89 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/1.15, allocations: 31.06 kB / 0.7799 GB, free: 45.89 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.896e-05/1.15, allocations: 38.12 kB / 0.78 GB, free: 45.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/1.151, allocations: 0.6059 MB / 0.7805 GB, free: 45.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/1.151, allocations: 6.094 kB / 0.7805 GB, free: 45.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/1.151, allocations: 15.69 kB / 0.7806 GB, free: 45.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/1.151, allocations: 18.59 kB / 0.7806 GB, free: 45.8 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/1.152, allocations: 0.5651 MB / 0.7811 GB, free: 45.79 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/1.154, allocations: 2.477 MB / 0.7836 GB, free: 44.15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/1.155, allocations: 479.9 kB / 0.784 GB, free: 44.12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/1.156, allocations: 315.7 kB / 0.7843 GB, free: 44.11 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2024/1.358, allocations: 43.91 MB / 0.8272 GB, free: 20.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/1.358, allocations: 42.77 kB / 0.8272 GB, free: 20.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 3.297e-06/1.358, allocations: 8.281 kB / 0.8272 GB, free: 20.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=82): time 0.005622/1.364, allocations: 2.238 MB / 0.8294 GB, free: 18.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.275e-05/1.364, allocations: 55.41 kB / 0.8295 GB, free: 18.38 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/1.364, allocations: 251.5 kB / 0.8297 GB, free: 18.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/1.364, allocations: 38.39 kB / 0.8298 GB, free: 18.13 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/1.364, allocations: 193.4 kB / 0.8299 GB, free: 17.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/1.364, allocations: 278.1 kB / 0.8302 GB, free: 17.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/1.365, allocations: 96.86 kB / 0.8303 GB, free: 17.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.865e-05/1.365, allocations: 352.5 kB / 0.8306 GB, free: 17.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/1.365, allocations: 283.9 kB / 0.8309 GB, free: 17.16 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/1.366, allocations: 416.8 kB / 0.8313 GB, free: 16.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009176/1.366, allocations: 0.731 MB / 0.832 GB, free: 16.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/1.366, allocations: 0 / 0.832 GB, free: 16.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001346/1.368, allocations: 0.8137 MB / 0.8328 GB, free: 15.76 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/1.368, allocations: 12.59 kB / 0.8328 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/1.368, allocations: 5.281 kB / 0.8328 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002501/1.368, allocations: 67.89 kB / 0.8329 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/1.369, allocations: 124.4 kB / 0.833 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06903/1.438, allocations: 19.68 MB / 0.8522 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004927/1.438, allocations: 35.67 kB / 0.8523 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.778e-05/1.438, allocations: 23.8 kB / 0.8523 GB, free: 12.36 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0003613/1.439, allocations: 184.2 kB / 0.8525 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/1.439, allocations: 43.72 kB / 0.8525 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/1.441, allocations: 1.618 MB / 0.8541 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/1.441, allocations: 9.828 kB / 0.8541 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/1.441, allocations: 2.812 kB / 0.8541 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00166/1.443, allocations: 1.213 MB / 0.8553 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002678/1.446, allocations: 1.649 MB / 0.8569 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/1.446, allocations: 0 / 0.8569 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/1.446, allocations: 83.19 kB / 0.857 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/1.446, allocations: 111.4 kB / 0.8571 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/1.446, allocations: 11.75 kB / 0.8571 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/1.448, allocations: 1.885 MB / 0.8589 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.448, allocations: 3.984 kB / 0.8589 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/1.45, allocations: 1.285 MB / 0.8602 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/1.45, allocations: 47.61 kB / 0.8602 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.529e-05/1.45, allocations: 7.812 kB / 0.8602 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/1.451, allocations: 27.78 kB / 0.8603 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/1.451, allocations: 47.73 kB / 0.8603 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/1.451, allocations: 8 kB / 0.8603 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003004/1.451, allocations: 247.3 kB / 0.8606 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.451, allocations: 0 / 0.8606 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01046/1.462, allocations: 3.574 MB / 0.864 GB, free: 2.023 MB / 0.5606 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.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,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.02255/1.484, allocations: 6.299 MB / 0.8702 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002457/1.487, allocations: 0.9643 MB / 0.8711 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.487, allocations: 6.25 kB / 0.8711 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009605/1.488, allocations: 489.5 kB / 0.8716 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/1.49, allocations: 409 kB / 0.872 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/1.505, allocations: 6.43 MB / 0.8783 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/1.505, allocations: 0.8531 MB / 0.8791 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005082/1.506, allocations: 150.8 kB / 0.8793 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/1.506, allocations: 165.8 kB / 0.8794 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of SimCode: time 8.31e-07/1.506, allocations: 0 / 0.8794 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5157/2.022, allocations: 133.3 MB / 1.01 GB, free: 242.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.2/21.22, allocations: 0 / 1.01 GB, free: 242.7 MB / 0.67 GB " [Timeout remaining time 639] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.971573597053066] Failed to read output from testmodel.py, exit status != 0: 21.441398865077645 21.462589754 20.316752593 Calling exit ...