Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.001263/0.001263, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001246/0.001246, allocations: 215 kB / 20.13 MB, free: 2.949 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 / 230.5 MB, free: 4.051 MB / 174.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.04867/0.04867, allocations: 9.141 MB / 291.5 MB, free: 7.18 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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.002091/0.002091, allocations: 63.91 kB / 406.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2641, allocations: 50.73 MB / 457.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4536/0.7176, allocations: 198.4 MB / 0.6403 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1299/0.8476, allocations: 144 MB / 0.781 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009912/0.8485, allocations: 11.94 kB / 0.781 GB, free: 11.1 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.005031/0.8536, allocations: 2.086 MB / 0.783 GB, free: 9.004 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006681/0.8603, allocations: 2.809 MB / 0.7857 GB, free: 6.184 MB / 0.545 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.1117/0.9719, allocations: 41.51 MB / 0.8263 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003348/0.9753, allocations: 1.97 MB / 0.8282 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003648/0.9757, allocations: 138.8 kB / 0.8283 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.9773, allocations: 0.8291 MB / 0.8291 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007729/0.9781, allocations: 0.5525 MB / 0.8297 GB, free: 9.012 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.835e-05/0.9782, allocations: 63.94 kB / 0.8297 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3871/1.365, allocations: 47.24 MB / 0.8759 GB, free: 36.29 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003193/1.366, allocations: 173.5 kB / 0.876 GB, free: 36.29 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000704/1.366, allocations: 430.4 kB / 0.8765 GB, free: 36.29 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05898/1.425, allocations: 18.8 MB / 0.8948 GB, free: 35.7 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/1.425, allocations: 0 / 0.8948 GB, free: 35.7 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.443e-06/1.425, allocations: 1.531 kB / 0.8948 GB, free: 35.7 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.873e-05/1.425, allocations: 0 / 0.8948 GB, free: 35.7 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01029/1.436, allocations: 3.5 MB / 0.8982 GB, free: 33.78 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/1.436, allocations: 7.438 kB / 0.8982 GB, free: 33.78 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.261e-05/1.436, allocations: 17.84 kB / 0.8983 GB, free: 33.77 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.012e-05/1.436, allocations: 106.9 kB / 0.8984 GB, free: 33.73 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007749/1.437, allocations: 125.5 kB / 0.8985 GB, free: 33.7 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/1.437, allocations: 408.5 kB / 0.8989 GB, free: 33.45 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/1.437, allocations: 42.59 kB / 0.8989 GB, free: 33.45 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.11e-05/1.437, allocations: 51.86 kB / 0.899 GB, free: 33.45 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/1.439, allocations: 0.8261 MB / 0.8998 GB, free: 33.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/1.439, allocations: 4.594 kB / 0.8998 GB, free: 33.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/1.439, allocations: 19.28 kB / 0.8998 GB, free: 33.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/1.439, allocations: 22.61 kB / 0.8998 GB, free: 33.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/1.44, allocations: 0.7537 MB / 0.9005 GB, free: 33.31 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/1.443, allocations: 3.421 MB / 0.9039 GB, free: 31.06 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/1.444, allocations: 0.6381 MB / 0.9045 GB, free: 31.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006181/1.445, allocations: 446.7 kB / 0.9049 GB, free: 31 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.331/1.776, allocations: 185.3 MB / 1.086 GB, free: 3.531 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/1.776, allocations: 38.5 kB / 1.086 GB, free: 3.492 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 3.486e-06/1.776, allocations: 4 kB / 1.086 GB, free: 3.488 MB / 0.7637 GB Notification: Performance of matching and sorting (n=117): time 0.009457/1.786, allocations: 3.43 MB / 1.089 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.088e-05/1.786, allocations: 61.84 kB / 1.089 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/1.786, allocations: 310.2 kB / 1.09 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/1.786, allocations: 37.45 kB / 1.09 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/1.786, allocations: 232.2 kB / 1.09 GB, free: 344 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/1.786, allocations: 400.3 kB / 1.09 GB, free: 0 / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2123/1.999, allocations: 136.8 kB / 1.09 GB, free: 434.3 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001506/1.999, allocations: 369.8 kB / 1.091 GB, free: 433.9 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009464/2, allocations: 396 kB / 1.091 GB, free: 433.9 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009339/2.001, allocations: 0.5313 MB / 1.092 GB, free: 433.8 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/2.003, allocations: 0.9839 MB / 1.093 GB, free: 433.7 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/2.003, allocations: 2.656 kB / 1.093 GB, free: 433.7 MB / 0.7637 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002045/2.005, allocations: 1.134 MB / 1.094 GB, free: 433.5 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/2.005, allocations: 10.06 kB / 1.094 GB, free: 433.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/2.005, allocations: 3.562 kB / 1.094 GB, free: 433.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/2.005, allocations: 96.78 kB / 1.094 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009733/2.006, allocations: 205.5 kB / 1.094 GB, free: 433.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1296/2.135, allocations: 35.28 MB / 1.128 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006711/2.136, allocations: 40.03 kB / 1.129 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/2.136, allocations: 31.98 kB / 1.129 GB, free: 417.5 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003739/2.137, allocations: 225.5 kB / 1.129 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/2.137, allocations: 63.41 kB / 1.129 GB, free: 417.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00248/2.139, allocations: 2.368 MB / 1.131 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/2.139, allocations: 24.36 kB / 1.131 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/2.139, allocations: 0 / 1.131 GB, free: 414.8 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001802/2.141, allocations: 1.642 MB / 1.133 GB, free: 413 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/2.144, allocations: 2.441 MB / 1.135 GB, free: 410.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/2.144, allocations: 2.859 kB / 1.135 GB, free: 410.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/2.144, allocations: 119.9 kB / 1.135 GB, free: 410.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004274/2.145, allocations: 208.6 kB / 1.135 GB, free: 410.2 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/2.145, allocations: 15.98 kB / 1.135 GB, free: 410.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/2.146, allocations: 3.981 MB / 1.139 GB, free: 405.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/2.146, allocations: 2.844 kB / 1.139 GB, free: 405.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/2.149, allocations: 1.966 MB / 1.141 GB, free: 403.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/2.149, allocations: 133.2 kB / 1.141 GB, free: 403.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.942e-05/2.149, allocations: 23.97 kB / 1.141 GB, free: 403.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/2.149, allocations: 31.97 kB / 1.141 GB, free: 403.7 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/2.15, allocations: 64.47 kB / 1.142 GB, free: 403.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/2.15, allocations: 23.98 kB / 1.142 GB, free: 403.6 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002055/2.15, allocations: 251.2 kB / 1.142 GB, free: 403.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 7e-08/2.15, allocations: 0 / 1.142 GB, free: 403.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01598/2.166, allocations: 5.544 MB / 1.147 GB, free: 398.4 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.03577/2.202, allocations: 9.147 MB / 1.156 GB, free: 389.9 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003243/2.205, allocations: 1.489 MB / 1.158 GB, free: 388.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/2.205, allocations: 0 / 1.158 GB, free: 388.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001038/2.206, allocations: 0.7855 MB / 1.158 GB, free: 387.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/2.208, allocations: 0.5116 MB / 1.159 GB, free: 387.1 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01917/2.227, allocations: 8.634 MB / 1.167 GB, free: 378.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/2.228, allocations: 0.9293 MB / 1.168 GB, free: 377.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005347/2.228, allocations: 188 kB / 1.168 GB, free: 377.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/2.228, allocations: 263.3 kB / 1.169 GB, free: 376.9 MB / 0.7637 GB Notification: Performance of SimCode: time 7.71e-07/2.228, allocations: 0 / 1.169 GB, free: 376.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2653/2.494, allocations: 210.9 MB / 1.375 GB, free: 165.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.41/21.91, allocations: 11.92 kB / 1.375 GB, free: 165.6 MB / 0.7637 GB " [Timeout remaining time 638] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 74.54416001803475] Failed to read output from testmodel.py, exit status != 0: 22.18316906900145 22.198061061 20.769627835 Calling exit ...