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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 108.8 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 189.7 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.361/2.361, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 67.89 kB / 1.055 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.6545, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002118/0.6567, allocations: 1.559 MB / 1.21 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008288/0.6575, allocations: 0.5648 MB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/0.6576, allocations: 0 / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.136e-05/0.6577, allocations: 23.86 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.6577, allocations: 15.8 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.6581, allocations: 91.77 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.6582, allocations: 99.62 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.214e-05/0.6583, allocations: 20.22 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.938e-05/0.6584, allocations: 47.91 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.742e-05/0.6585, allocations: 39.83 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.6585, allocations: 8 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.6586, allocations: 91.84 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.6587, allocations: 23.91 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.745e-05/0.6588, allocations: 39.73 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.6589, allocations: 143.3 kB / 1.211 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.6589, allocations: 4 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6589, allocations: 0 / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.659, allocations: 0 / 1.211 GB, free: 10.82 MB / 0.9356 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.0006957/0.6597, allocations: 452.3 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.6597, allocations: 8.031 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.6597, allocations: 12.84 kB / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.6599, allocations: 196.1 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.6599, allocations: 4.375 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.6599, allocations: 4.375 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.6602, allocations: 117.8 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.6602, allocations: 0 / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.6602, allocations: 4 kB / 1.212 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.6603, allocations: 4 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/0.6606, allocations: 91.86 kB / 1.212 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.6611, allocations: 352.5 kB / 1.212 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.6614, allocations: 90.5 kB / 1.212 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.6616, allocations: 64.88 kB / 1.212 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.6616, allocations: 0 / 1.212 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.6619, allocations: 111.3 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.6619, allocations: 0 / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0006054/0.6625, allocations: 209.4 kB / 1.213 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.6626, allocations: 55.41 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.337e-05/0.6627, allocations: 136.1 kB / 1.213 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.6627, allocations: 25.7 kB / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.6628, allocations: 104 kB / 1.213 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.6628, allocations: 31.55 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.6628, allocations: 37.7 kB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.448e-05/0.6629, allocations: 322.8 kB / 1.213 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.6631, allocations: 55.95 kB / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.6633, allocations: 59.94 kB / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.6637, allocations: 146.5 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6637, allocations: 0 / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004208/0.6641, allocations: 199.2 kB / 1.214 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.6641, allocations: 41.69 kB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6641, allocations: 480 / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.6642, allocations: 0 / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.6643, allocations: 19.98 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.6643, allocations: 0 / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.6644, allocations: 23.95 kB / 1.214 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.6645, allocations: 3.938 kB / 1.214 GB, free: 7.656 MB / 0.9356 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.34e-05/0.6646, allocations: 121.8 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.143e-05/0.6646, allocations: 11.81 kB / 1.214 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/0.6646, allocations: 16.7 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.6646, allocations: 4 kB / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.6647, allocations: 4 kB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.6647, allocations: 4 kB / 1.214 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.6648, allocations: 197.5 kB / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.6648, allocations: 0 / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.6649, allocations: 19.92 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.6649, allocations: 0 / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.665, allocations: 3.984 kB / 1.214 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.665, allocations: 4 kB / 1.214 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.665, allocations: 0 / 1.214 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003939/0.6654, allocations: 188.9 kB / 1.214 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.6654, allocations: 85.02 kB / 1.215 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.6654, allocations: 3.938 kB / 1.215 GB, free: 6.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.6656, allocations: 15.98 kB / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.6656, allocations: 11.98 kB / 1.215 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.6656, allocations: 11.98 kB / 1.215 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.003e-05/0.6657, allocations: 105.5 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6657, allocations: 0 / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002293/0.6659, allocations: 39.94 kB / 1.215 GB, free: 6.723 MB / 0.9356 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001408/0.6661, allocations: 115.2 kB / 1.215 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.6665, allocations: 191.2 kB / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6665, allocations: 0 / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.6667, allocations: 67.92 kB / 1.215 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.6669, allocations: 8.188 kB / 1.215 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004726/0.6674, allocations: 269.1 kB / 1.215 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001898/0.6676, allocations: 0.6963 MB / 1.216 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.6677, allocations: 23.42 kB / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.6677, allocations: 0 / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of Templates: time 0.002601/0.6703, allocations: 1.514 MB / 1.218 GB, free: 3.777 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches