Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.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.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker") [: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 1.708/1.708, 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.0009207/0.0009207, allocations: 192.1 kB / 490.8 MB, free: 1.891 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.075/1.075, allocations: 221.4 MB / 0.7863 GB, free: 13.71 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.0008121/0.0008122, allocations: 95.23 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.149e-06/5.17e-06, allocations: 4 kB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1681, allocations: 143 MB / 1.212 GB, free: 21.89 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4617/0.6298, allocations: 151 MB / 1.359 GB, free: 1.941 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001494/0.63, allocations: 78.12 kB / 1.359 GB, free: 1.898 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.00895/0.639, allocations: 3.224 MB / 1.362 GB, free: 15.16 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.639, allocations: 4 kB / 1.362 GB, free: 15.15 MB / 0.823 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.0005212/0.6395, allocations: 442.8 kB / 1.363 GB, free: 14.68 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.6396, allocations: 8.031 kB / 1.363 GB, free: 14.67 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.6396, allocations: 11.81 kB / 1.363 GB, free: 14.66 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.6398, allocations: 193.2 kB / 1.363 GB, free: 14.43 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.6398, allocations: 4 kB / 1.363 GB, free: 14.43 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.6398, allocations: 0 / 1.363 GB, free: 14.43 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001078/0.6399, allocations: 45.56 kB / 1.363 GB, free: 14.4 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.6401, allocations: 79.7 kB / 1.363 GB, free: 14.33 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.6401, allocations: 3.984 kB / 1.363 GB, free: 14.32 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.6401, allocations: 0 / 1.363 GB, free: 14.32 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.6401, allocations: 0 / 1.363 GB, free: 14.32 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.6406, allocations: 345.6 kB / 1.363 GB, free: 13.98 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.853e-05/0.6407, allocations: 64.88 kB / 1.363 GB, free: 13.92 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.928e-05/0.6408, allocations: 36.53 kB / 1.363 GB, free: 13.89 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.6408, allocations: 0 / 1.363 GB, free: 13.89 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.761e-05/0.6409, allocations: 75.14 kB / 1.364 GB, free: 13.82 MB / 0.823 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.6409, allocations: 0 / 1.364 GB, free: 13.82 MB / 0.823 GB Notification: Performance of matching and sorting (n=9): time 0.0002282/0.6412, allocations: 104.4 kB / 1.364 GB, free: 13.72 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.6412, allocations: 59.34 kB / 1.364 GB, free: 13.65 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.254e-05/0.6413, allocations: 135.6 kB / 1.364 GB, free: 13.52 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.6413, allocations: 25.7 kB / 1.364 GB, free: 13.49 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.945e-05/0.6414, allocations: 95.88 kB / 1.364 GB, free: 13.4 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.6414, allocations: 23.56 kB / 1.364 GB, free: 13.38 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.6414, allocations: 3.938 kB / 1.364 GB, free: 13.38 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.6415, allocations: 318.7 kB / 1.364 GB, free: 13.06 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.986e-05/0.6416, allocations: 37.42 kB / 1.364 GB, free: 13.04 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-05/0.6416, allocations: 28.11 kB / 1.364 GB, free: 13.02 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.411e-05/0.6417, allocations: 37.78 kB / 1.364 GB, free: 12.99 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6417, allocations: 4 kB / 1.364 GB, free: 12.99 MB / 0.823 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001867/0.6419, allocations: 116.5 kB / 1.364 GB, free: 12.89 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.6419, allocations: 8 kB / 1.364 GB, free: 12.88 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.6419, allocations: 0 / 1.364 GB, free: 12.88 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.6419, allocations: 3.938 kB / 1.364 GB, free: 12.88 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.6421, allocations: 27.97 kB / 1.365 GB, free: 12.85 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.6421, allocations: 4 kB / 1.365 GB, free: 12.84 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.6423, allocations: 20.92 kB / 1.365 GB, free: 12.82 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.6423, allocations: 7.25 kB / 1.365 GB, free: 12.82 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 6.505e-05/0.6424, allocations: 117.9 kB / 1.365 GB, free: 12.7 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.6424, allocations: 7.906 kB / 1.365 GB, free: 12.69 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/0.6426, allocations: 118.3 kB / 1.365 GB, free: 12.59 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.6426, allocations: 0 / 1.365 GB, free: 12.59 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.6426, allocations: 0 / 1.365 GB, free: 12.59 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.6426, allocations: 4 kB / 1.365 GB, free: 12.59 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.6427, allocations: 172 kB / 1.365 GB, free: 12.39 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.6428, allocations: 9.172 kB / 1.365 GB, free: 12.39 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.6429, allocations: 23.98 kB / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.6429, allocations: 0 / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.6429, allocations: 0 / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.6429, allocations: 0 / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6429, allocations: 3.938 kB / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001767/0.6431, allocations: 136.4 kB / 1.365 GB, free: 12.23 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.046e-05/0.6431, allocations: 84.95 kB / 1.365 GB, free: 12.12 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.6432, allocations: 4 kB / 1.365 GB, free: 12.12 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.6433, allocations: 28.06 kB / 1.365 GB, free: 12.1 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.6434, allocations: 15.98 kB / 1.365 GB, free: 12.08 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.6434, allocations: 3.984 kB / 1.365 GB, free: 12.08 MB / 0.823 GB Notification: Performance of sort global known variables: time 5.113e-05/0.6435, allocations: 105.3 kB / 1.365 GB, free: 11.99 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002136/0.6437, allocations: 47.86 kB / 1.365 GB, free: 11.94 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001412/0.6438, allocations: 123.2 kB / 1.365 GB, free: 11.81 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001784/0.644, allocations: 133.6 kB / 1.366 GB, free: 11.69 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.644, allocations: 0 / 1.366 GB, free: 11.69 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 8.307e-05/0.6441, allocations: 75.69 kB / 1.366 GB, free: 11.62 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.6442, allocations: 8 kB / 1.366 GB, free: 11.61 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.6446, allocations: 138.4 kB / 1.366 GB, free: 11.47 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.6449, allocations: 0.7153 MB / 1.367 GB, free: 10.73 MB / 0.823 GB Notification: Performance of SimCode: time 2.21e-07/0.6449, allocations: 0 / 1.367 GB, free: 10.73 MB / 0.823 GB Notification: Performance of Templates: time 0.003148/0.648, allocations: 1.461 MB / 1.368 GB, free: 9.285 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_SignalRanker.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches