Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") [: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 10.0.0-master/package.mo): time 2.026/2.026, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 180.1 kB / 490.8 MB, free: 1.922 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 221.3 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009676/0.0009677, allocations: 95.84 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.586e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3204, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.473/4.794, allocations: 1.872 GB / 3.083 GB, free: 433.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/4.794, allocations: 92.56 kB / 3.083 GB, free: 433.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 5.693/10.49, allocations: 1.814 GB / 4.898 GB, free: 361 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001778/10.49, allocations: 35.14 kB / 4.898 GB, free: 361 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.003223/10.49, allocations: 1.133 MB / 4.899 GB, free: 360.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/10.49, allocations: 9.766 kB / 4.899 GB, free: 360.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00139/10.49, allocations: 190.6 kB / 4.899 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/10.49, allocations: 1.115 MB / 4.9 GB, free: 360.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/10.49, allocations: 19.19 kB / 4.9 GB, free: 360.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/10.49, allocations: 45.64 kB / 4.9 GB, free: 360.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009595/10.5, allocations: 492 kB / 4.901 GB, free: 360.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/10.5, allocations: 0.683 MB / 4.901 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/10.5, allocations: 5.625 kB / 4.901 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.462e-05/10.5, allocations: 2.188 kB / 4.901 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/10.5, allocations: 17 kB / 4.901 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004567/10.5, allocations: 4.671 MB / 4.906 GB, free: 356.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006958/10.5, allocations: 451.1 kB / 4.906 GB, free: 356.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/10.5, allocations: 246 kB / 4.907 GB, free: 356.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003209/10.5, allocations: 198.7 kB / 4.907 GB, free: 356.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/10.5, allocations: 263.8 kB / 4.907 GB, free: 356.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 1.993e-06/10.5, allocations: 0 / 4.907 GB, free: 356.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.002046/10.51, allocations: 0.768 MB / 4.908 GB, free: 356 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/10.51, allocations: 89.58 kB / 4.908 GB, free: 355.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/10.51, allocations: 0.8782 MB / 4.909 GB, free: 355.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/10.51, allocations: 29.34 kB / 4.909 GB, free: 355.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/10.51, allocations: 334.1 kB / 4.909 GB, free: 355.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/10.51, allocations: 106.3 kB / 4.909 GB, free: 355.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.042e-05/10.51, allocations: 0 / 4.909 GB, free: 355.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.225e-05/10.51, allocations: 323 kB / 4.909 GB, free: 355.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/10.51, allocations: 186.9 kB / 4.91 GB, free: 355.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005219/10.51, allocations: 0.5032 MB / 4.91 GB, free: 354.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004314/10.51, allocations: 276.2 kB / 4.91 GB, free: 354.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/10.51, allocations: 2.344 kB / 4.91 GB, free: 354.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002007/10.51, allocations: 0.9054 MB / 4.911 GB, free: 354.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004475/10.51, allocations: 2.094 MB / 4.913 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/10.51, allocations: 5.828 kB / 4.913 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/10.51, allocations: 232.3 kB / 4.913 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/10.51, allocations: 63.66 kB / 4.914 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/10.51, allocations: 1.144 MB / 4.915 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/10.51, allocations: 84.7 kB / 4.915 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.138e-05/10.51, allocations: 26.45 kB / 4.915 GB, free: 352 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/10.51, allocations: 4.312 kB / 4.915 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001263/10.52, allocations: 0.5939 MB / 4.915 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/10.52, allocations: 6.125 kB / 4.915 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/10.52, allocations: 204.4 kB / 4.916 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/10.52, allocations: 66.66 kB / 4.916 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003511/10.52, allocations: 2.761 MB / 4.918 GB, free: 350.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/10.52, allocations: 81.38 kB / 4.918 GB, free: 350.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/10.52, allocations: 26.55 kB / 4.918 GB, free: 350.6 MB / 1.151 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 (34): * Single equations (assignments): 32 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.000215/10.52, allocations: 119.5 kB / 4.919 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/10.52, allocations: 92.8 kB / 4.919 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/10.52, allocations: 0.663 MB / 4.919 GB, free: 350.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/10.52, allocations: 4.094 kB / 4.919 GB, free: 350.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/10.52, allocations: 8.547 kB / 4.919 GB, free: 350.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/10.52, allocations: 1.312 kB / 4.919 GB, free: 350.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/10.53, allocations: 1.483 MB / 4.921 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/10.53, allocations: 1.281 kB / 4.921 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/10.53, allocations: 27.34 kB / 4.921 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/10.53, allocations: 191.4 kB / 4.921 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/10.53, allocations: 12.47 kB / 4.921 GB, free: 349.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008735/10.53, allocations: 1.013 MB / 4.922 GB, free: 349.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/10.53, allocations: 9.562 kB / 4.922 GB, free: 349.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001057/10.53, allocations: 0.8595 MB / 4.923 GB, free: 348.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004153/10.53, allocations: 213.9 kB / 4.923 GB, free: 348.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/10.53, allocations: 11.42 kB / 4.923 GB, free: 348.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/10.53, allocations: 47.11 kB / 4.923 GB, free: 348.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.704e-05/10.53, allocations: 46.42 kB / 4.923 GB, free: 348.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/10.53, allocations: 7.469 kB / 4.923 GB, free: 348.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009158/10.53, allocations: 0.6828 MB / 4.924 GB, free: 348.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001957/10.53, allocations: 477.1 kB / 4.924 GB, free: 348.4 MB / 1.151 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 (12): * Single equations (assignments): 9 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001755/10.53, allocations: 1.103 MB / 4.925 GB, free: 348.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001644/10.54, allocations: 0.9123 MB / 4.926 GB, free: 347.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/10.54, allocations: 0 / 4.926 GB, free: 347.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003582/10.54, allocations: 212.2 kB / 4.926 GB, free: 347.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/10.54, allocations: 376.4 kB / 4.927 GB, free: 347.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/10.54, allocations: 1.397 MB / 4.928 GB, free: 347.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000696/10.54, allocations: 1.256 MB / 4.929 GB, free: 346.4 MB / 1.151 GB Notification: Performance of SimCode: time 6.31e-07/10.54, allocations: 0 / 4.929 GB, free: 346.4 MB / 1.151 GB Notification: Performance of Templates: time 0.04156/10.58, allocations: 23.38 MB / 4.952 GB, free: 335 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches