Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.198/1.198, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 192.4 kB / 316 MB, free: 3.449 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.061/1.061, allocations: 205.2 MB / 0.5667 GB, free: 15.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008336/0.0008335, allocations: 86.08 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.031e-06/6.041e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1453, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.48/3.625, allocations: 2.185 GB / 3.069 GB, free: 208.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/3.626, allocations: 95.94 kB / 3.069 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.766/8.392, allocations: 1.923 GB / 4.993 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.26e-05/8.392, allocations: 35.72 kB / 4.993 GB, free: 207.5 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003213/8.395, allocations: 1.339 MB / 4.994 GB, free: 207 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/8.395, allocations: 11.38 kB / 4.994 GB, free: 207 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008629/8.396, allocations: 208.6 kB / 4.994 GB, free: 206.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/8.399, allocations: 1.453 MB / 4.996 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/8.399, allocations: 18.97 kB / 4.996 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.522e-05/8.399, allocations: 43.75 kB / 4.996 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008498/8.4, allocations: 0.7239 MB / 4.996 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/8.401, allocations: 0.8643 MB / 4.997 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/8.401, allocations: 7.5 kB / 4.997 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.371e-05/8.401, allocations: 7.719 kB / 4.997 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/8.401, allocations: 15.44 kB / 4.997 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003012/8.404, allocations: 4.681 MB / 5.002 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/8.405, allocations: 0.5066 MB / 5.002 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003675/8.405, allocations: 432.6 kB / 5.003 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002275/8.406, allocations: 194.6 kB / 5.003 GB, free: 203 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/8.406, allocations: 308.5 kB / 5.003 GB, free: 202.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=35): time 1.633e-06/8.406, allocations: 0 / 5.003 GB, free: 202.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=35): time 0.001548/8.407, allocations: 0.8729 MB / 5.004 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/8.407, allocations: 87.02 kB / 5.004 GB, free: 202.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/8.408, allocations: 0.9234 MB / 5.005 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/8.408, allocations: 25.7 kB / 5.005 GB, free: 202.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/8.408, allocations: 359.6 kB / 5.005 GB, free: 202.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/8.408, allocations: 110.5 kB / 5.005 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/8.409, allocations: 6.625 kB / 5.005 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.408e-05/8.409, allocations: 332.6 kB / 5.006 GB, free: 202 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/8.409, allocations: 219.6 kB / 5.006 GB, free: 202 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/8.409, allocations: 0.5462 MB / 5.007 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/8.409, allocations: 303.3 kB / 5.007 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/8.409, allocations: 2.062 kB / 5.007 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001421/8.411, allocations: 0.9996 MB / 5.008 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002887/8.411, allocations: 2.103 MB / 5.01 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/8.411, allocations: 14.41 kB / 5.01 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004681/8.412, allocations: 270.9 kB / 5.01 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/8.412, allocations: 70.03 kB / 5.01 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009234/8.413, allocations: 1.224 MB / 5.011 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008521/8.414, allocations: 110.8 kB / 5.011 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/8.414, allocations: 22.56 kB / 5.012 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.789e-06/8.414, allocations: 3.812 kB / 5.012 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00097/8.415, allocations: 0.6721 MB / 5.012 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/8.415, allocations: 14.47 kB / 5.012 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005626/8.415, allocations: 242.5 kB / 5.012 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/8.416, allocations: 77.09 kB / 5.012 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/8.418, allocations: 2.92 MB / 5.015 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/8.419, allocations: 103.2 kB / 5.015 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/8.419, allocations: 22.94 kB / 5.015 GB, free: 197.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_m_flow.T_start,pulse_m_flow.T_start,$PRE.pulse_m_flow.count,pulse_m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 22} Notification: Performance of prepare postOptimizeDAE: time 0.0001023/8.419, allocations: 130.4 kB / 5.016 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.956e-05/8.419, allocations: 104.5 kB / 5.016 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/8.42, allocations: 0.7688 MB / 5.016 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/8.42, allocations: 3.875 kB / 5.016 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/8.42, allocations: 0 / 5.016 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/8.42, allocations: 7.266 kB / 5.016 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/8.422, allocations: 1.689 MB / 5.018 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/8.422, allocations: 3.906 kB / 5.018 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/8.422, allocations: 36.91 kB / 5.018 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003521/8.423, allocations: 228.3 kB / 5.018 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/8.423, allocations: 7.25 kB / 5.018 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006676/8.423, allocations: 1.067 MB / 5.019 GB, free: 196.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/8.424, allocations: 6.812 kB / 5.019 GB, free: 196.2 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009042/8.424, allocations: 0.9768 MB / 5.02 GB, free: 195.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/8.425, allocations: 230.6 kB / 5.021 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/8.425, allocations: 7.422 kB / 5.021 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/8.425, allocations: 79.38 kB / 5.021 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.571e-05/8.426, allocations: 33.41 kB / 5.021 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/8.426, allocations: 8.688 kB / 5.021 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0006077/8.426, allocations: 0.72 MB / 5.021 GB, free: 195.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001259/8.427, allocations: 0.5479 MB / 5.022 GB, free: 195.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_m_flow.T_start,pulse_m_flow.count) * Number of discrete states: 1 (pulse_m_flow.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001172/8.429, allocations: 1.289 MB / 5.023 GB, free: 195.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001152/8.43, allocations: 1.02 MB / 5.024 GB, free: 195 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/8.43, allocations: 0 / 5.024 GB, free: 195 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003122/8.43, allocations: 249.7 kB / 5.024 GB, free: 195 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/8.433, allocations: 0.5717 MB / 5.025 GB, free: 195 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/8.434, allocations: 1.473 MB / 5.026 GB, free: 194.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005623/8.435, allocations: 1.297 MB / 5.028 GB, free: 193.9 MB / 0.8698 GB Notification: Performance of SimCode: time 3.01e-07/8.435, allocations: 3.844 kB / 5.028 GB, free: 193.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.03955/8.475, allocations: 27.29 MB / 5.054 GB, free: 192.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches