Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [: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.168/1.168, allocations: 249.4 MB / 256.7 MB, free: 6.996 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.0008885/0.0008882, allocations: 184.7 kB / 316 MB, free: 3.492 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.013/1.013, allocations: 205.1 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.0007535/0.0007535, allocations: 89.83 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.37e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1338, allocations: 106.3 MB / 0.8846 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.5323, allocations: 135.1 MB / 1.016 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.5326, allocations: 93.86 kB / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01172/0.5444, allocations: 4.912 MB / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.231e-05/0.5444, allocations: 7.938 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003928/0.5448, allocations: 0.4895 MB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.5448, allocations: 16.03 kB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/0.5449, allocations: 31.06 kB / 1.022 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.5454, allocations: 419.5 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.5455, allocations: 7.938 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.5455, allocations: 4 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.76e-05/0.5456, allocations: 32.92 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.316e-05/0.5457, allocations: 68.17 kB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.5457, allocations: 0 / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.5457, allocations: 3.906 kB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.5457, allocations: 4 kB / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.5462, allocations: 480 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 7.434e-05/0.5463, allocations: 37.38 kB / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.476e-05/0.5464, allocations: 20.55 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.5464, allocations: 0 / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.5464, allocations: 30.56 kB / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.5464, allocations: 0 / 1.023 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001693/0.5466, allocations: 76.28 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/0.5466, allocations: 55.34 kB / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/0.5471, allocations: 493.5 kB / 1.024 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.5471, allocations: 25.7 kB / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.5472, allocations: 122.8 kB / 1.024 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.5472, allocations: 15 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/0.5472, allocations: 0 / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.5473, allocations: 341.3 kB / 1.024 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.746e-05/0.5473, allocations: 7.688 kB / 1.024 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.503e-05/0.5473, allocations: 11.25 kB / 1.024 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.38e-05/0.5474, allocations: 11.23 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.5474, allocations: 112 / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001015/0.5475, allocations: 80.38 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.5475, allocations: 12 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.5475, allocations: 192 / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.185e-06/0.5475, allocations: 0 / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.065e-05/0.5476, allocations: 8 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/0.5476, allocations: 3.938 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.082e-05/0.5477, allocations: 11.97 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.5477, allocations: 3.906 kB / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 5.042e-05/0.5478, allocations: 108.9 kB / 1.024 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/0.5478, allocations: 27.62 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.548, allocations: 90.23 kB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.548, allocations: 0 / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.548, allocations: 0 / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.548, allocations: 0 / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.5482, allocations: 282.8 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.5482, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.409e-05/0.5483, allocations: 7.984 kB / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.5483, allocations: 8 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.5483, allocations: 0 / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.5483, allocations: 0 / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5483, allocations: 0 / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001288/0.5484, allocations: 182 kB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.5486, allocations: 134 kB / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.5486, allocations: 0 / 1.025 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.5487, allocations: 12 kB / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.5487, allocations: 0 / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.5487, allocations: 7.984 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003537/0.5491, allocations: 384.1 kB / 1.025 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002518/0.5494, allocations: 31.92 kB / 1.025 GB, free: 11.5 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004567/0.5498, allocations: 267.9 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 7.084e-05/0.5499, allocations: 30.8 kB / 1.026 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5499, allocations: 0 / 1.026 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.319e-05/0.5499, allocations: 11.31 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.5502, allocations: 52.19 kB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.5508, allocations: 402.5 kB / 1.026 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/0.5512, allocations: 0.8103 MB / 1.027 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.5512, allocations: 0 / 1.027 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of Templates: time 0.004452/0.5556, allocations: 1.989 MB / 1.029 GB, free: 8.09 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches