Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.00126/0.00126, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001427/0.001427, allocations: 212.6 kB / 23.02 MB, free: 4.953 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.328/1.328, allocations: 207.7 MB / 233.9 MB, free: 9.773 MB / 190.1 MB " [Timeout remaining time 179] 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.04976/0.04976, allocations: 9.145 MB / 295.3 MB, free: 12.52 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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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 kB / 411.9 MB, free: 46.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06969/0.07177, allocations: 50.75 MB / 462.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3197/0.3915, allocations: 114.9 MB / 0.564 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.09779/0.4893, allocations: 98.58 MB / 0.6603 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004994/0.4898, allocations: 7.938 kB / 0.6603 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002838/0.4926, allocations: 1.227 MB / 0.6615 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003567/0.4962, allocations: 1.563 MB / 0.663 GB, free: 12.39 MB / 494.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.06847/0.5646, allocations: 31.26 MB / 0.6936 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001882/0.5665, allocations: 1.425 MB / 0.6949 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.5667, allocations: 85.92 kB / 0.695 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01573/0.5825, allocations: 9.231 MB / 0.704 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.583, allocations: 398.4 kB / 0.7044 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.991e-05/0.5831, allocations: 44 kB / 0.7045 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04532/0.6284, allocations: 25.2 MB / 0.7291 GB, free: 8.582 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002474/0.6287, allocations: 119.6 kB / 0.7292 GB, free: 8.465 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004793/0.6291, allocations: 259 kB / 0.7294 GB, free: 8.211 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2744/0.9035, allocations: 12.3 MB / 0.7414 GB, free: 68.45 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.9035, allocations: 0 / 0.7414 GB, free: 68.45 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9035, allocations: 0.9375 kB / 0.7414 GB, free: 68.45 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.844e-05/0.9035, allocations: 0 / 0.7414 GB, free: 68.45 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.007628/0.9112, allocations: 2.593 MB / 0.744 GB, free: 67.03 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.9112, allocations: 13.67 kB / 0.744 GB, free: 67.03 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.44e-05/0.9112, allocations: 10.28 kB / 0.744 GB, free: 67.03 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.197e-05/0.9113, allocations: 82.98 kB / 0.7441 GB, free: 66.99 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006208/0.9119, allocations: 97.5 kB / 0.7442 GB, free: 66.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.9124, allocations: 281.8 kB / 0.7444 GB, free: 66.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.9125, allocations: 30.81 kB / 0.7445 GB, free: 66.8 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.9125, allocations: 31.16 kB / 0.7445 GB, free: 66.8 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.9138, allocations: 0.7629 MB / 0.7452 GB, free: 66.52 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.9138, allocations: 4.031 kB / 0.7453 GB, free: 66.52 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.9139, allocations: 18.22 kB / 0.7453 GB, free: 66.52 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.9139, allocations: 16.03 kB / 0.7453 GB, free: 66.52 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.9152, allocations: 0.5601 MB / 0.7458 GB, free: 66.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.9172, allocations: 1.703 MB / 0.7475 GB, free: 65.72 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.9183, allocations: 492.5 kB / 0.748 GB, free: 65.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/0.9188, allocations: 318.4 kB / 0.7483 GB, free: 65.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1896/1.108, allocations: 44.03 MB / 0.7913 GB, free: 64.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/1.108, allocations: 35.88 kB / 0.7913 GB, free: 64.76 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 3.126e-06/1.108, allocations: 0 / 0.7913 GB, free: 64.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005312/1.114, allocations: 2.242 MB / 0.7935 GB, free: 64.37 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.237e-05/1.114, allocations: 56.06 kB / 0.7935 GB, free: 64.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/1.114, allocations: 253.2 kB / 0.7938 GB, free: 64.12 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/1.114, allocations: 31.52 kB / 0.7938 GB, free: 64.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/1.114, allocations: 187 kB / 0.794 GB, free: 63.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/1.114, allocations: 278.7 kB / 0.7943 GB, free: 63.72 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/1.114, allocations: 101.7 kB / 0.7944 GB, free: 63.65 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.228e-05/1.114, allocations: 361.3 kB / 0.7947 GB, free: 63.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/1.115, allocations: 283 kB / 0.795 GB, free: 63.14 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/1.115, allocations: 405.7 kB / 0.7954 GB, free: 62.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/1.116, allocations: 0.7205 MB / 0.7961 GB, free: 62.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/1.116, allocations: 0 / 0.7961 GB, free: 62.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001212/1.117, allocations: 0.8018 MB / 0.7968 GB, free: 61.76 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.117, allocations: 14.14 kB / 0.7969 GB, free: 61.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/1.117, allocations: 10.81 kB / 0.7969 GB, free: 61.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002258/1.118, allocations: 60.84 kB / 0.7969 GB, free: 61.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/1.118, allocations: 94.19 kB / 0.797 GB, free: 61.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06328/1.181, allocations: 17 MB / 0.8136 GB, free: 45.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/1.182, allocations: 26.89 kB / 0.8136 GB, free: 45.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/1.182, allocations: 25.67 kB / 0.8137 GB, free: 45.11 MB / 0.545 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.0002377/1.182, allocations: 184.2 kB / 0.8138 GB, free: 44.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.015e-05/1.182, allocations: 47.59 kB / 0.8139 GB, free: 44.92 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/1.184, allocations: 1.586 MB / 0.8154 GB, free: 43.79 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/1.184, allocations: 14.98 kB / 0.8155 GB, free: 43.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/1.184, allocations: 0 / 0.8155 GB, free: 43.78 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001101/1.185, allocations: 1.173 MB / 0.8166 GB, free: 42.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/1.187, allocations: 1.549 MB / 0.8181 GB, free: 41.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.187, allocations: 0 / 0.8181 GB, free: 41.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/1.187, allocations: 95.31 kB / 0.8182 GB, free: 41.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/1.187, allocations: 40.62 kB / 0.8182 GB, free: 41.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/1.187, allocations: 7.875 kB / 0.8183 GB, free: 41.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006936/1.188, allocations: 1.322 MB / 0.8195 GB, free: 40.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.188, allocations: 3.469 kB / 0.8195 GB, free: 40.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/1.189, allocations: 1.204 MB / 0.8207 GB, free: 39.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.944e-05/1.19, allocations: 39.69 kB / 0.8208 GB, free: 39.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/1.19, allocations: 11.8 kB / 0.8208 GB, free: 39.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/1.19, allocations: 26.8 kB / 0.8208 GB, free: 39.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.498e-05/1.19, allocations: 54.56 kB / 0.8208 GB, free: 39.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/1.19, allocations: 16.81 kB / 0.8209 GB, free: 39.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001884/1.19, allocations: 240.2 kB / 0.8211 GB, free: 39.03 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/1.19, allocations: 0 / 0.8211 GB, free: 39.03 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009705/1.2, allocations: 3.574 MB / 0.8246 GB, free: 35.55 MB / 0.545 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.02071/1.221, allocations: 6.227 MB / 0.8307 GB, free: 30.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001692/1.222, allocations: 0.9296 MB / 0.8316 GB, free: 29.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.222, allocations: 4.188 kB / 0.8316 GB, free: 29.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007003/1.223, allocations: 469.7 kB / 0.832 GB, free: 29.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/1.225, allocations: 393 kB / 0.8324 GB, free: 28.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/1.237, allocations: 6.397 MB / 0.8386 GB, free: 23.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/1.237, allocations: 246.3 kB / 0.8389 GB, free: 23.19 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004025/1.238, allocations: 166.1 kB / 0.839 GB, free: 23.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.238, allocations: 168.9 kB / 0.8392 GB, free: 22.97 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/1.238, allocations: 4 kB / 0.8392 GB, free: 22.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.242/1.48, allocations: 133.9 MB / 0.97 GB, free: 1.273 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.93/19.41, allocations: 11.97 kB / 0.97 GB, free: 1.262 MB / 0.6544 GB " [Timeout remaining time 640] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 29.598852624068968] Failed to read output from testmodel.py, exit status != 0: 19.656006293022074 19.842158586 18.93599253 Calling exit ...