Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.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.001627/0.001627, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002022/0.002022, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.388/1.388, allocations: 207.6 MB / 233.8 MB, free: 9.973 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.04992/0.04992, allocations: 9.16 MB / 295.2 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.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",fmuType="cs",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.002076/0.002076, allocations: 71.27 kB / 411.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07442/0.07649, allocations: 50.75 MB / 462.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.3491/0.4256, allocations: 130.3 MB / 0.579 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1159/0.5414, allocations: 111.5 MB / 0.6879 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000555/0.542, allocations: 11.94 kB / 0.6879 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00328/0.5453, allocations: 1.555 MB / 0.6894 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00406/0.5493, allocations: 1.825 MB / 0.6912 GB, free: 3.051 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.07242/0.6217, allocations: 31.37 MB / 0.7219 GB, free: 3.574 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002071/0.6238, allocations: 1.425 MB / 0.7233 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.624, allocations: 81.91 kB / 0.7233 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01678/0.6408, allocations: 9.364 MB / 0.7325 GB, free: 8.676 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005766/0.6414, allocations: 390.4 kB / 0.7329 GB, free: 8.293 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.6415, allocations: 40 kB / 0.7329 GB, free: 8.254 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3428/0.9842, allocations: 36.37 MB / 0.7684 GB, free: 46.31 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.9844, allocations: 125.9 kB / 0.7685 GB, free: 46.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005051/0.985, allocations: 305.1 kB / 0.7688 GB, free: 46.31 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03765/1.023, allocations: 14.13 MB / 0.7826 GB, free: 45.89 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/1.023, allocations: 0 / 0.7826 GB, free: 45.89 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.893e-06/1.023, allocations: 0 / 0.7826 GB, free: 45.89 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.847e-06/1.023, allocations: 0 / 0.7826 GB, free: 45.89 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.006452/1.029, allocations: 2.603 MB / 0.7852 GB, free: 44.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/1.029, allocations: 11.14 kB / 0.7852 GB, free: 44.46 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.777e-05/1.029, allocations: 11.25 kB / 0.7852 GB, free: 44.46 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.51e-05/1.029, allocations: 89.84 kB / 0.7853 GB, free: 44.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005697/1.03, allocations: 89.84 kB / 0.7854 GB, free: 44.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003621/1.03, allocations: 283 kB / 0.7856 GB, free: 44.23 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/1.03, allocations: 29.06 kB / 0.7857 GB, free: 44.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/1.03, allocations: 33.59 kB / 0.7857 GB, free: 44.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/1.031, allocations: 0.612 MB / 0.7863 GB, free: 44.14 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/1.031, allocations: 0 / 0.7863 GB, free: 44.14 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/1.031, allocations: 17.86 kB / 0.7863 GB, free: 44.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/1.031, allocations: 20.61 kB / 0.7863 GB, free: 44.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/1.033, allocations: 0.563 MB / 0.7869 GB, free: 44.13 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/1.035, allocations: 2.519 MB / 0.7893 GB, free: 42.42 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/1.036, allocations: 499.6 kB / 0.7898 GB, free: 42.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/1.036, allocations: 313.7 kB / 0.7901 GB, free: 42.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1832/1.219, allocations: 43.91 MB / 0.833 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/1.219, allocations: 38.77 kB / 0.833 GB, free: 15.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 2.394e-06/1.219, allocations: 0 / 0.833 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005174/1.224, allocations: 2.244 MB / 0.8352 GB, free: 13.87 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/1.224, allocations: 55.41 kB / 0.8353 GB, free: 13.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/1.225, allocations: 251 kB / 0.8355 GB, free: 13.59 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/1.225, allocations: 29.58 kB / 0.8355 GB, free: 13.56 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/1.225, allocations: 196.2 kB / 0.8357 GB, free: 13.39 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/1.225, allocations: 271.3 kB / 0.836 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/1.225, allocations: 104.9 kB / 0.8361 GB, free: 13.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.185e-05/1.225, allocations: 361.2 kB / 0.8364 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004191/1.225, allocations: 272.6 kB / 0.8367 GB, free: 12.58 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004614/1.226, allocations: 409.1 kB / 0.8371 GB, free: 12.26 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/1.227, allocations: 0.7276 MB / 0.8378 GB, free: 11.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.227, allocations: 0 / 0.8378 GB, free: 11.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001285/1.228, allocations: 0.8045 MB / 0.8386 GB, free: 11.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/1.228, allocations: 16.02 kB / 0.8386 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/1.228, allocations: 4 kB / 0.8386 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/1.228, allocations: 57.05 kB / 0.8386 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/1.229, allocations: 102.8 kB / 0.8387 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07341/1.302, allocations: 17.08 MB / 0.8554 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/1.303, allocations: 29.33 kB / 0.8554 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/1.303, allocations: 19.81 kB / 0.8555 GB, free: 10.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0002658/1.303, allocations: 194.5 kB / 0.8557 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.583e-05/1.303, allocations: 43.72 kB / 0.8557 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/1.305, allocations: 1.59 MB / 0.8572 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/1.305, allocations: 10.66 kB / 0.8573 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/1.305, allocations: 0 / 0.8573 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001474/1.306, allocations: 1.175 MB / 0.8584 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002224/1.309, allocations: 1.605 MB / 0.86 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/1.309, allocations: 0 / 0.86 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/1.309, allocations: 82.5 kB / 0.86 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/1.309, allocations: 47.22 kB / 0.8601 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.34e-05/1.309, allocations: 15.17 kB / 0.8601 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/1.31, allocations: 1.317 MB / 0.8614 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.31, allocations: 2.625 kB / 0.8614 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/1.312, allocations: 1.217 MB / 0.8626 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/1.312, allocations: 38 kB / 0.8626 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/1.312, allocations: 10.25 kB / 0.8626 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/1.313, allocations: 23.91 kB / 0.8627 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.313, allocations: 47.23 kB / 0.8627 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/1.313, allocations: 19.23 kB / 0.8627 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002658/1.313, allocations: 249.8 kB / 0.863 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.313, allocations: 0 / 0.863 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009625/1.323, allocations: 3.573 MB / 0.8664 GB, free: 0.9102 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 (40): * 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: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01983/1.343, allocations: 6.242 MB / 0.8725 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001929/1.345, allocations: 0.9316 MB / 0.8735 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.345, allocations: 0 / 0.8735 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008684/1.345, allocations: 483.3 kB / 0.8739 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002802/1.348, allocations: 379.8 kB / 0.8743 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/1.364, allocations: 6.39 MB / 0.8805 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/1.364, allocations: 0.8548 MB / 0.8813 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004909/1.365, allocations: 165.6 kB / 0.8815 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/1.365, allocations: 165 kB / 0.8817 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of SimCode: time 9.02e-07/1.365, allocations: 4 kB / 0.8817 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4344/1.8, allocations: 133.2 MB / 1.012 GB, free: 241.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.01/18.81, allocations: 13.23 kB / 1.012 GB, free: 241.4 MB / 0.67 GB " [Timeout remaining time 641] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.658403743058443] Failed to read output from testmodel.py, exit status != 0: 19.058012519963086 19.076715913 18.050209285 Calling exit ...