Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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.SeriesFlowOptimised,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.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,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.SeriesFlowOptimised") [: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.205/1.205, allocations: 249.4 MB / 256.7 MB, free: 7.008 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.0009951/0.000995, allocations: 181.2 kB / 316 MB, free: 3.57 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.133/1.133, allocations: 205.1 MB / 0.5667 GB, free: 15.69 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.001051/0.001051, allocations: 87.56 kB / 0.671 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.272e-06/6.292e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1496, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.253/3.403, allocations: 2.182 GB / 3.067 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/3.403, allocations: 93.02 kB / 3.067 GB, free: 223 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.187/7.59, allocations: 1.725 GB / 4.792 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.17e-05/7.59, allocations: 32.38 kB / 4.792 GB, free: 156.2 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001397/7.592, allocations: 1.124 MB / 4.793 GB, free: 155 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/7.592, allocations: 8.031 kB / 4.793 GB, free: 155 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006921/7.592, allocations: 186.5 kB / 4.793 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/7.594, allocations: 1.097 MB / 4.794 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/7.594, allocations: 19.98 kB / 4.794 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/7.594, allocations: 36 kB / 4.795 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005813/7.595, allocations: 489.7 kB / 4.795 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006682/7.596, allocations: 0.685 MB / 4.796 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/7.596, allocations: 7.938 kB / 4.796 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/7.596, allocations: 4 kB / 4.796 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/7.596, allocations: 15.91 kB / 4.796 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/7.598, allocations: 4.665 MB / 4.8 GB, free: 147.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/7.599, allocations: 458.4 kB / 4.801 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/7.599, allocations: 248.2 kB / 4.801 GB, free: 146.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/7.599, allocations: 204 kB / 4.801 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/7.599, allocations: 260.5 kB / 4.801 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 1.323e-06/7.599, allocations: 0 / 4.801 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=31): time 0.0007335/7.6, allocations: 0.4922 MB / 4.802 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/7.6, allocations: 89.09 kB / 4.802 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007397/7.601, allocations: 0.8752 MB / 4.803 GB, free: 144.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/7.601, allocations: 29.7 kB / 4.803 GB, free: 144.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00014/7.601, allocations: 338.4 kB / 4.803 GB, free: 144.3 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/7.601, allocations: 102.4 kB / 4.803 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/7.601, allocations: 4 kB / 4.803 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.483e-05/7.601, allocations: 322 kB / 4.804 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/7.602, allocations: 192.8 kB / 4.804 GB, free: 143.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/7.602, allocations: 0.5038 MB / 4.804 GB, free: 143 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/7.602, allocations: 278.2 kB / 4.804 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/7.602, allocations: 0 / 4.804 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00066/7.603, allocations: 0.6328 MB / 4.805 GB, free: 142.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002715/7.603, allocations: 2.097 MB / 4.807 GB, free: 139.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/7.603, allocations: 4 kB / 4.807 GB, free: 139.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/7.603, allocations: 12 kB / 4.807 GB, free: 139.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/7.604, allocations: 115.8 kB / 4.807 GB, free: 139.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/7.604, allocations: 15.94 kB / 4.807 GB, free: 139.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006108/7.604, allocations: 87.45 kB / 4.807 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/7.604, allocations: 24 kB / 4.807 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.769e-06/7.604, allocations: 4 kB / 4.807 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004454/7.605, allocations: 416.8 kB / 4.808 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/7.605, allocations: 4 kB / 4.808 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.793e-06/7.605, allocations: 8.109 kB / 4.808 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/7.605, allocations: 124.4 kB / 4.808 GB, free: 139.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/7.605, allocations: 11.98 kB / 4.808 GB, free: 139.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/7.606, allocations: 75.59 kB / 4.808 GB, free: 139 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/7.606, allocations: 20 kB / 4.808 GB, free: 139 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_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.479e-05/7.606, allocations: 124.8 kB / 4.808 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.697e-05/7.606, allocations: 98.88 kB / 4.808 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000535/7.606, allocations: 462.3 kB / 4.809 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/7.606, allocations: 4 kB / 4.809 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/7.606, allocations: 0 / 4.809 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/7.606, allocations: 4 kB / 4.809 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/7.608, allocations: 1.28 MB / 4.81 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/7.608, allocations: 4.219 kB / 4.81 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/7.608, allocations: 75.88 kB / 4.81 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/7.608, allocations: 4 kB / 4.81 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/7.608, allocations: 8 kB / 4.81 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/7.608, allocations: 3.938 kB / 4.81 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/7.608, allocations: 7.984 kB / 4.81 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004654/7.609, allocations: 0.6395 MB / 4.811 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002178/7.609, allocations: 211.8 kB / 4.811 GB, free: 135.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/7.609, allocations: 7.906 kB / 4.811 GB, free: 135.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/7.609, allocations: 43.95 kB / 4.811 GB, free: 135.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/7.609, allocations: 35.86 kB / 4.811 GB, free: 135.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/7.609, allocations: 12 kB / 4.811 GB, free: 135.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.000553/7.61, allocations: 0.6845 MB / 4.812 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001007/7.611, allocations: 455.3 kB / 4.812 GB, free: 134.7 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_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/7.612, allocations: 1.038 MB / 4.813 GB, free: 133.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0007202/7.613, allocations: 0.7381 MB / 4.814 GB, free: 133 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/7.613, allocations: 0 / 4.814 GB, free: 133 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/7.613, allocations: 187.6 kB / 4.814 GB, free: 132.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/7.614, allocations: 374.6 kB / 4.814 GB, free: 132.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/7.616, allocations: 1.372 MB / 4.816 GB, free: 131 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000588/7.617, allocations: 1.267 MB / 4.817 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of SimCode: time 2.5e-07/7.617, allocations: 0 / 4.817 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.02652/7.643, allocations: 21.21 MB / 4.838 GB, free: 108.7 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches