Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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.SeriesDpOptimised,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.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,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.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 7.0.3-maint.7.0.x/package.mo): time 1.156/1.156, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 190.8 kB / 316 MB, free: 7.199 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.209/1.209, allocations: 205.1 MB / 0.5667 GB, free: 23.64 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.0007749/0.0007751, allocations: 82.42 kB / 0.671 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.103e-06, allocations: 4 kB / 0.7807 GB, free: 476 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3397, allocations: 106.3 MB / 0.8846 GB, free: 76.38 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.392/3.732, allocations: 2.184 GB / 3.068 GB, free: 332.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/3.732, allocations: 95.22 kB / 3.068 GB, free: 332.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.463/8.196, allocations: 1.737 GB / 4.805 GB, free: 246.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001118/8.196, allocations: 35.36 kB / 4.805 GB, free: 246.7 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002036/8.198, allocations: 1.135 MB / 4.807 GB, free: 245.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/8.198, allocations: 8.25 kB / 4.807 GB, free: 245.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008427/8.199, allocations: 187.3 kB / 4.807 GB, free: 245.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/8.201, allocations: 1.116 MB / 4.808 GB, free: 245.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/8.201, allocations: 16.31 kB / 4.808 GB, free: 245.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.964e-05/8.201, allocations: 39.97 kB / 4.808 GB, free: 245.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006147/8.202, allocations: 489.6 kB / 4.808 GB, free: 244.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/8.202, allocations: 0.6903 MB / 4.809 GB, free: 244 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/8.202, allocations: 3.938 kB / 4.809 GB, free: 244 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/8.202, allocations: 4 kB / 4.809 GB, free: 244 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/8.202, allocations: 12 kB / 4.809 GB, free: 243.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/8.205, allocations: 4.682 MB / 4.814 GB, free: 239 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004438/8.206, allocations: 448.6 kB / 4.814 GB, free: 238.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/8.206, allocations: 246.7 kB / 4.814 GB, free: 238.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002419/8.206, allocations: 197.3 kB / 4.814 GB, free: 238.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/8.207, allocations: 259.3 kB / 4.815 GB, free: 237.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 1.774e-06/8.207, allocations: 4 kB / 4.815 GB, free: 237.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=31): time 0.001534/8.208, allocations: 0.7635 MB / 4.815 GB, free: 237 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/8.208, allocations: 93.02 kB / 4.816 GB, free: 236.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007709/8.209, allocations: 0.8736 MB / 4.816 GB, free: 236 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/8.209, allocations: 29.7 kB / 4.816 GB, free: 236 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/8.209, allocations: 347.6 kB / 4.817 GB, free: 235.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/8.209, allocations: 103.1 kB / 4.817 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/8.209, allocations: 0 / 4.817 GB, free: 235.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.84e-05/8.209, allocations: 330 kB / 4.817 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/8.209, allocations: 180.8 kB / 4.817 GB, free: 235.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/8.21, allocations: 0.503 MB / 4.818 GB, free: 234.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/8.21, allocations: 278.6 kB / 4.818 GB, free: 234.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/8.21, allocations: 0 / 4.818 GB, free: 234.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001353/8.211, allocations: 0.9062 MB / 4.819 GB, free: 233.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003054/8.212, allocations: 2.093 MB / 4.821 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/8.212, allocations: 4 kB / 4.821 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003764/8.212, allocations: 235.9 kB / 4.821 GB, free: 230.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/8.212, allocations: 67.84 kB / 4.821 GB, free: 230.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008234/8.213, allocations: 1.141 MB / 4.822 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/8.214, allocations: 88.48 kB / 4.823 GB, free: 229.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/8.214, allocations: 27.98 kB / 4.823 GB, free: 229.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.48e-06/8.214, allocations: 4 kB / 4.823 GB, free: 229.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009168/8.215, allocations: 0.5925 MB / 4.823 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/8.215, allocations: 8 kB / 4.823 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004721/8.215, allocations: 204.5 kB / 4.823 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/8.216, allocations: 63.91 kB / 4.823 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/8.218, allocations: 2.755 MB / 4.826 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/8.219, allocations: 80.89 kB / 4.826 GB, free: 225.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/8.219, allocations: 24 kB / 4.826 GB, free: 225.7 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 (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.0001115/8.219, allocations: 116.8 kB / 4.826 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/8.219, allocations: 101.7 kB / 4.826 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009063/8.22, allocations: 0.6623 MB / 4.827 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/8.22, allocations: 4 kB / 4.827 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/8.22, allocations: 0 / 4.827 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/8.22, allocations: 3.984 kB / 4.827 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/8.222, allocations: 1.487 MB / 4.828 GB, free: 223.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/8.222, allocations: 4 kB / 4.828 GB, free: 223.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/8.222, allocations: 30.61 kB / 4.829 GB, free: 223.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002671/8.222, allocations: 192.9 kB / 4.829 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/8.222, allocations: 7.062 kB / 4.829 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006199/8.223, allocations: 1.015 MB / 4.83 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/8.223, allocations: 4 kB / 4.83 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007651/8.224, allocations: 0.8505 MB / 4.831 GB, free: 221.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002411/8.224, allocations: 223.7 kB / 4.831 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/8.224, allocations: 4 kB / 4.831 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/8.224, allocations: 54.17 kB / 4.831 GB, free: 220.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/8.225, allocations: 31.86 kB / 4.831 GB, free: 220.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/8.225, allocations: 12 kB / 4.831 GB, free: 220.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0005889/8.225, allocations: 0.6847 MB / 4.832 GB, free: 220.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001241/8.226, allocations: 475.4 kB / 4.832 GB, free: 219.6 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 (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.001121/8.228, allocations: 1.1 MB / 4.833 GB, free: 218.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001146/8.229, allocations: 0.9205 MB / 4.834 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/8.229, allocations: 0 / 4.834 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003185/8.229, allocations: 209.6 kB / 4.834 GB, free: 217.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/8.231, allocations: 381.1 kB / 4.834 GB, free: 217.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/8.232, allocations: 1.391 MB / 4.836 GB, free: 215.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/8.233, allocations: 1.257 MB / 4.837 GB, free: 214.6 MB / 0.8698 GB Notification: Performance of SimCode: time 2.71e-07/8.233, allocations: 0 / 4.837 GB, free: 214.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.03003/8.263, allocations: 23.37 MB / 4.86 GB, free: 191.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches