Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001408/0.001408, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 199.4 kB / 16.79 MB, free: 6.809 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.552/1.552, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.502/2.502, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 59.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6605/0.662, allocations: 140.4 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002492/0.6645, allocations: 1.605 MB / 0.9511 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008723/0.6654, allocations: 0.5812 MB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.459e-05/0.6655, allocations: 3.938 kB / 0.9517 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.6656, allocations: 13.48 kB / 0.9517 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.368e-05/0.6657, allocations: 13.27 kB / 0.9517 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002963/0.666, allocations: 71.81 kB / 0.9518 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.6661, allocations: 89.98 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.6662, allocations: 21.94 kB / 0.9519 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.6663, allocations: 51.64 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.729e-05/0.6664, allocations: 42.48 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.6664, allocations: 4.469 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.6665, allocations: 53.08 kB / 0.9521 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.838e-05/0.6666, allocations: 23.88 kB / 0.9521 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.689e-05/0.6666, allocations: 37.3 kB / 0.9521 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.6668, allocations: 92.14 kB / 0.9522 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6668, allocations: 0 / 0.9522 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6668, allocations: 5.188 kB / 0.9522 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.6668, allocations: 4 kB / 0.9522 GB, free: 7.109 MB / 0.7169 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.000707/0.6675, allocations: 449.4 kB / 0.9526 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.6676, allocations: 12.81 kB / 0.9527 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.6676, allocations: 12.98 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.6678, allocations: 190.3 kB / 0.9528 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.6678, allocations: 3.844 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.6678, allocations: 7.469 kB / 0.9529 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.6681, allocations: 115 kB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.6682, allocations: 1.125 kB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.6682, allocations: 4 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.6682, allocations: 5.094 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.6685, allocations: 88.62 kB / 0.9531 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005715/0.6691, allocations: 353.1 kB / 0.9534 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.6694, allocations: 90.8 kB / 0.9535 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.6696, allocations: 63.06 kB / 0.9535 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.6696, allocations: 1.312 kB / 0.9535 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.67, allocations: 113 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.67, allocations: 0 / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0006315/0.6706, allocations: 212.1 kB / 0.9539 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.6706, allocations: 57.05 kB / 0.9539 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.6707, allocations: 143.8 kB / 0.9541 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.6708, allocations: 30.92 kB / 0.9541 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.94e-05/0.6708, allocations: 100.1 kB / 0.9542 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.139e-05/0.6709, allocations: 24.34 kB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-05/0.6709, allocations: 28.8 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.671, allocations: 325.3 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.6712, allocations: 56.3 kB / 0.9546 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.6713, allocations: 66.05 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.6717, allocations: 142.6 kB / 0.9548 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6717, allocations: 1.25 kB / 0.9548 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004345/0.6721, allocations: 204.3 kB / 0.955 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.6722, allocations: 31.23 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.6722, allocations: 0 / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.6722, allocations: 1.469 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.6724, allocations: 27.97 kB / 0.955 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.6724, allocations: 1.469 kB / 0.955 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.6725, allocations: 16.67 kB / 0.9551 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.6726, allocations: 6.156 kB / 0.9551 GB, free: 4.652 MB / 0.7169 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 7.529e-05/0.6726, allocations: 124.9 kB / 0.9552 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.6727, allocations: 8.125 kB / 0.9552 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.6727, allocations: 11.38 kB / 0.9552 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.6727, allocations: 6.906 kB / 0.9552 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6727, allocations: 5.391 kB / 0.9552 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.6727, allocations: 0 / 0.9552 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.6729, allocations: 203.2 kB / 0.9554 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6729, allocations: 1.375 kB / 0.9554 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.673, allocations: 19.31 kB / 0.9554 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.673, allocations: 3.984 kB / 0.9554 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.673, allocations: 1.406 kB / 0.9554 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.673, allocations: 0 / 0.9554 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.673, allocations: 3.938 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/0.6734, allocations: 181.9 kB / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.031e-05/0.6735, allocations: 87.61 kB / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.6735, allocations: 5.438 kB / 0.9557 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.6737, allocations: 17 kB / 0.9557 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.6737, allocations: 12.89 kB / 0.9557 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.6737, allocations: 6.375 kB / 0.9557 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.827e-05/0.6738, allocations: 112.6 kB / 0.9558 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6738, allocations: 3.938 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002769/0.6741, allocations: 36.19 kB / 0.9559 GB, free: 3.914 MB / 0.7169 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.000182/0.6743, allocations: 124.7 kB / 0.956 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000431/0.6747, allocations: 184.2 kB / 0.9562 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6747, allocations: 0.8438 kB / 0.9562 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.6749, allocations: 64.3 kB / 0.9562 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.6752, allocations: 15.3 kB / 0.9563 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005271/0.6757, allocations: 272.4 kB / 0.9565 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.6758, allocations: 0.7031 MB / 0.9572 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.6759, allocations: 15.8 kB / 0.9572 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6759, allocations: 4 kB / 0.9572 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of Templates: time 0.003218/0.6791, allocations: 1.5 MB / 0.9587 GB, free: 1.934 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches