Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.455/1.455, allocations: 249.4 MB / 256.7 MB, free: 7.047 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.001111/0.001111, allocations: 189.2 kB / 316 MB, free: 3.523 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.37/1.37, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0009954/0.0009953, allocations: 93.66 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.032e-06/6.051e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2077, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6492/0.857, allocations: 133.6 MB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.8573, allocations: 72.2 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01042/0.8677, allocations: 3.166 MB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.8678, allocations: 0 / 1.018 GB, free: 2.266 MB / 0.6355 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.0007204/0.8685, allocations: 462.1 kB / 1.019 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.8686, allocations: 12.03 kB / 1.019 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.8686, allocations: 7.906 kB / 1.019 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.8689, allocations: 190 kB / 1.019 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.8689, allocations: 0 / 1.019 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.869, allocations: 11.89 kB / 1.019 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001418/0.8691, allocations: 42.75 kB / 1.019 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.8693, allocations: 74.03 kB / 1.019 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.8693, allocations: 0 / 1.019 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.8693, allocations: 8 kB / 1.019 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.8693, allocations: 0 / 1.019 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006837/0.87, allocations: 348.9 kB / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.8701, allocations: 51.69 kB / 1.019 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.315e-05/0.8702, allocations: 43.55 kB / 1.019 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.8702, allocations: 11.97 kB / 1.019 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000117/0.8704, allocations: 79.62 kB / 1.019 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.8704, allocations: 0 / 1.019 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002891/0.8707, allocations: 99.14 kB / 1.02 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.8707, allocations: 58.89 kB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.8708, allocations: 119.4 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.8709, allocations: 25.7 kB / 1.02 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.8709, allocations: 99.48 kB / 1.02 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.8709, allocations: 22.83 kB / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.871, allocations: 0 / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.8711, allocations: 326.6 kB / 1.02 GB, free: 160 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.271e-05/0.8712, allocations: 30.56 kB / 1.02 GB, free: 140 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.4e-05/0.8712, allocations: 30.36 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.136e-05/0.8713, allocations: 34.23 kB / 1.02 GB, free: 96 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8713, allocations: 0 / 1.02 GB, free: 96 kB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002259/0.8715, allocations: 118.7 kB / 1.02 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.8716, allocations: 4 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.8716, allocations: 7.938 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.8716, allocations: 4 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.8718, allocations: 23.92 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.8718, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.872, allocations: 35.81 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.152e-05/0.872, allocations: 7.438 kB / 1.02 GB, free: 15.91 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: 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 0.0001234/0.8721, allocations: 101 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.8722, allocations: 11.81 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.8725, allocations: 126.3 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.8725, allocations: 3.938 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8725, allocations: 0 / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.8725, allocations: 0 / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.8727, allocations: 179.3 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.8727, allocations: 0 / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.8728, allocations: 27.97 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.8728, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.8729, allocations: 4 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8729, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.8729, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002072/0.8731, allocations: 132.4 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.8731, allocations: 85.02 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.8732, allocations: 3.875 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.8733, allocations: 27.97 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.8734, allocations: 11.92 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.8734, allocations: 4 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.643e-05/0.8735, allocations: 107.3 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002454/0.8738, allocations: 43.91 kB / 1.021 GB, free: 15.04 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: 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.000207/0.874, allocations: 130.6 kB / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002352/0.8742, allocations: 135.4 kB / 1.022 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8742, allocations: 0 / 1.022 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.8743, allocations: 70.31 kB / 1.022 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001707/0.8745, allocations: 7.312 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004018/0.8749, allocations: 140.9 kB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/0.8752, allocations: 0.7149 MB / 1.022 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.8753, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of Templates: time 0.004033/0.8793, allocations: 1.473 MB / 1.024 GB, free: 12.38 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_SignalRanker.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches