Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.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.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") [: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.034/2.034, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001033/0.001033, allocations: 183.8 kB / 490.8 MB, free: 1.969 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.468/1.468, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.001028/0.001028, allocations: 98.33 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.877e-06/8.907e-06, allocations: 4 kB / 1.072 GB, free: 182.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2935, allocations: 143 MB / 1.212 GB, free: 40.18 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.632/3.926, allocations: 1.869 GB / 3.081 GB, free: 44.11 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/3.926, allocations: 91.94 kB / 3.081 GB, free: 44.02 MB / 1.167 GB Notification: Performance of FrontEnd: time 6.517/10.44, allocations: 1.998 GB / 5.079 GB, free: 321.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000114/10.44, allocations: 31.39 kB / 5.079 GB, free: 321 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.004075/10.45, allocations: 1.356 MB / 5.08 GB, free: 319.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/10.45, allocations: 8.031 kB / 5.08 GB, free: 319.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/10.45, allocations: 202.3 kB / 5.081 GB, free: 319.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/10.45, allocations: 1.431 MB / 5.082 GB, free: 318.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/10.45, allocations: 16 kB / 5.082 GB, free: 318 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.08e-05/10.45, allocations: 43.98 kB / 5.082 GB, free: 318 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009411/10.45, allocations: 0.7248 MB / 5.083 GB, free: 317.3 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000977/10.45, allocations: 0.865 MB / 5.084 GB, free: 316.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/10.45, allocations: 0 / 5.084 GB, free: 316.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/10.45, allocations: 4 kB / 5.084 GB, free: 316.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/10.45, allocations: 16 kB / 5.084 GB, free: 316.3 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/10.46, allocations: 4.715 MB / 5.088 GB, free: 311.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/10.46, allocations: 0.5297 MB / 5.089 GB, free: 310.8 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/10.46, allocations: 442.3 kB / 5.089 GB, free: 310.4 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002953/10.46, allocations: 197.5 kB / 5.089 GB, free: 310.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/10.46, allocations: 307.8 kB / 5.09 GB, free: 309.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=35): time 2.344e-06/10.46, allocations: 0 / 5.09 GB, free: 309.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=35): time 0.001784/10.46, allocations: 0.9472 MB / 5.091 GB, free: 308.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/10.46, allocations: 85.09 kB / 5.091 GB, free: 308.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009117/10.46, allocations: 0.9217 MB / 5.092 GB, free: 307.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/10.46, allocations: 33.69 kB / 5.092 GB, free: 307.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/10.46, allocations: 348.3 kB / 5.092 GB, free: 307.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 7.669e-05/10.46, allocations: 122.3 kB / 5.092 GB, free: 307.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/10.46, allocations: 3.938 kB / 5.092 GB, free: 307.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.838e-05/10.46, allocations: 322 kB / 5.092 GB, free: 307 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/10.46, allocations: 224.9 kB / 5.093 GB, free: 306.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004067/10.46, allocations: 0.5587 MB / 5.093 GB, free: 306.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003205/10.46, allocations: 322.5 kB / 5.093 GB, free: 305.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/10.46, allocations: 7.938 kB / 5.093 GB, free: 305.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001599/10.47, allocations: 1.071 MB / 5.094 GB, free: 304.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000434/10.47, allocations: 2.1 MB / 5.097 GB, free: 302.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/10.47, allocations: 8 kB / 5.097 GB, free: 302.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006427/10.47, allocations: 336.5 kB / 5.097 GB, free: 302.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/10.47, allocations: 71.84 kB / 5.097 GB, free: 302 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/10.47, allocations: 1.342 MB / 5.098 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/10.47, allocations: 119.4 kB / 5.098 GB, free: 300.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.866e-05/10.47, allocations: 24 kB / 5.098 GB, free: 300.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/10.47, allocations: 4 kB / 5.098 GB, free: 300.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/10.47, allocations: 0.7537 MB / 5.099 GB, free: 299.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/10.47, allocations: 8 kB / 5.099 GB, free: 299.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007289/10.47, allocations: 318.3 kB / 5.099 GB, free: 299.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/10.47, allocations: 63.91 kB / 5.099 GB, free: 299.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00353/10.47, allocations: 3.434 MB / 5.103 GB, free: 295.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009588/10.48, allocations: 111.5 kB / 5.103 GB, free: 295.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/10.48, allocations: 24 kB / 5.103 GB, free: 295.7 MB / 1.167 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 (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 {2 22} Notification: Performance of prepare postOptimizeDAE: time 0.0001551/10.48, allocations: 113.2 kB / 5.103 GB, free: 295.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/10.48, allocations: 110.7 kB / 5.103 GB, free: 295.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/10.48, allocations: 0.8504 MB / 5.104 GB, free: 294.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/10.48, allocations: 4 kB / 5.104 GB, free: 294.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/10.48, allocations: 0 / 5.104 GB, free: 294.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/10.48, allocations: 3.938 kB / 5.104 GB, free: 294.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/10.48, allocations: 1.795 MB / 5.106 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/10.48, allocations: 4 kB / 5.106 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/10.48, allocations: 23.98 kB / 5.106 GB, free: 292.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/10.48, allocations: 280.7 kB / 5.106 GB, free: 292.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/10.48, allocations: 11.98 kB / 5.106 GB, free: 292.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008554/10.48, allocations: 1.204 MB / 5.107 GB, free: 291.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/10.48, allocations: 0 / 5.107 GB, free: 291.2 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001073/10.48, allocations: 1.05 MB / 5.108 GB, free: 290.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/10.48, allocations: 227.8 kB / 5.108 GB, free: 289.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/10.48, allocations: 7.938 kB / 5.108 GB, free: 289.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006918/10.48, allocations: 75.75 kB / 5.109 GB, free: 289.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/10.48, allocations: 35.86 kB / 5.109 GB, free: 289.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/10.48, allocations: 12 kB / 5.109 GB, free: 289.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0007164/10.48, allocations: 0.7139 MB / 5.109 GB, free: 289 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00169/10.49, allocations: 0.554 MB / 5.11 GB, free: 288.5 MB / 1.167 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 (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 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001577/10.49, allocations: 1.218 MB / 5.111 GB, free: 287.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001618/10.49, allocations: 1.082 MB / 5.112 GB, free: 286.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/10.49, allocations: 0 / 5.112 GB, free: 286.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003941/10.49, allocations: 262.5 kB / 5.112 GB, free: 286 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/10.49, allocations: 0.5609 MB / 5.113 GB, free: 285.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/10.49, allocations: 1.484 MB / 5.114 GB, free: 283.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006995/10.5, allocations: 1.3 MB / 5.116 GB, free: 282.6 MB / 1.167 GB Notification: Performance of SimCode: time 7.42e-07/10.5, allocations: 0 / 5.116 GB, free: 282.6 MB / 1.167 GB Notification: Performance of Templates: time 0.0428/10.54, allocations: 27.4 MB / 5.142 GB, free: 255.5 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised.csv","../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches