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.0009438/0.0009441, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.00111/0.00111, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.3 MB / 240 MB, free: 5.238 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.701/2.701, allocations: 390.9 MB / 0.666 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003462/0.0003465, allocations: 8 kB / 0.8153 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6467/0.6471, allocations: 142.4 MB / 0.9544 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.001571/0.6487, allocations: 1.242 MB / 0.9556 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008621/0.6496, allocations: 0.5424 MB / 0.9562 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.359e-05/0.6497, allocations: 1.062 kB / 0.9562 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.066e-05/0.6498, allocations: 7.922 kB / 0.9562 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.022e-05/0.6499, allocations: 18.11 kB / 0.9562 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.6502, allocations: 71.77 kB / 0.9563 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.6504, allocations: 83.38 kB / 0.9563 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.99e-05/0.6505, allocations: 15.56 kB / 0.9564 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.6506, allocations: 36.12 kB / 0.9564 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.202e-05/0.6507, allocations: 44.94 kB / 0.9564 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.6507, allocations: 8 kB / 0.9564 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.6508, allocations: 48.72 kB / 0.9565 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.879e-05/0.6509, allocations: 19.31 kB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.298e-05/0.6509, allocations: 39.14 kB / 0.9565 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.6511, allocations: 91.42 kB / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.6511, allocations: 1.156 kB / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6511, allocations: 0 / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.177e-06/0.6511, allocations: 0 / 0.9566 GB, free: 5.992 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.000755/0.6519, allocations: 454.2 kB / 0.9571 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.6519, allocations: 9.125 kB / 0.9571 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.652, allocations: 13.45 kB / 0.9571 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.6521, allocations: 188.2 kB / 0.9573 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.6522, allocations: 5.984 kB / 0.9573 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.6522, allocations: 7.969 kB / 0.9573 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.6525, allocations: 115.4 kB / 0.9574 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.6525, allocations: 3.938 kB / 0.9574 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.6525, allocations: 1 kB / 0.9574 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.6526, allocations: 11.05 kB / 0.9574 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.6529, allocations: 104 kB / 0.9575 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.6535, allocations: 357.9 kB / 0.9578 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.6538, allocations: 111.9 kB / 0.958 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.6539, allocations: 72.52 kB / 0.958 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.654, allocations: 5.438 kB / 0.958 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.6543, allocations: 118.3 kB / 0.9581 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.984e-06/0.6543, allocations: 0 / 0.9581 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005869/0.6549, allocations: 243.8 kB / 0.9584 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.6549, allocations: 52.66 kB / 0.9584 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.655, allocations: 143.4 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.655, allocations: 31.08 kB / 0.9586 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.6551, allocations: 96.17 kB / 0.9587 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.6551, allocations: 27.77 kB / 0.9587 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.6551, allocations: 1.375 kB / 0.9587 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.069e-05/0.6552, allocations: 325.6 kB / 0.959 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.6554, allocations: 69.14 kB / 0.9591 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.6555, allocations: 73.25 kB / 0.9592 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.6557, allocations: 92.28 kB / 0.9592 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6557, allocations: 3.953 kB / 0.9592 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004141/0.6561, allocations: 216.9 kB / 0.9595 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.6562, allocations: 31.2 kB / 0.9595 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.6562, allocations: 1.375 kB / 0.9595 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.6562, allocations: 4 kB / 0.9595 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.6564, allocations: 30.25 kB / 0.9595 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.6564, allocations: 4.062 kB / 0.9595 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.6565, allocations: 21.73 kB / 0.9595 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.6565, allocations: 2.688 kB / 0.9595 GB, free: 3.586 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.026e-05/0.6566, allocations: 128.4 kB / 0.9597 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.6566, allocations: 11.86 kB / 0.9597 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.6567, allocations: 12.69 kB / 0.9597 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.6567, allocations: 2.375 kB / 0.9597 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.6567, allocations: 7.984 kB / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.6567, allocations: 1.281 kB / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.6569, allocations: 203.8 kB / 0.9599 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.6569, allocations: 0 / 0.9599 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.657, allocations: 35.67 kB / 0.9599 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.657, allocations: 0 / 0.9599 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.657, allocations: 1.656 kB / 0.9599 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.657, allocations: 0 / 0.9599 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.657, allocations: 1.406 kB / 0.9599 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003991/0.6574, allocations: 198.7 kB / 0.9601 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.6575, allocations: 86.89 kB / 0.9602 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.6575, allocations: 5.234 kB / 0.9602 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.6576, allocations: 25.22 kB / 0.9602 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.192e-05/0.6577, allocations: 13.45 kB / 0.9602 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.6577, allocations: 6.016 kB / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.919e-05/0.6578, allocations: 104 kB / 0.9604 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6578, allocations: 1.438 kB / 0.9604 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002788/0.6581, allocations: 31 kB / 0.9604 GB, free: 2.848 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 (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.0001607/0.6582, allocations: 128.6 kB / 0.9605 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004323/0.6587, allocations: 197 kB / 0.9607 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.6587, allocations: 4.75 kB / 0.9607 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.6589, allocations: 78.91 kB / 0.9608 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.6591, allocations: 8.125 kB / 0.9608 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005047/0.6596, allocations: 250.3 kB / 0.961 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.6598, allocations: 0.701 MB / 0.9617 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.679e-05/0.6598, allocations: 19.2 kB / 0.9617 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.6599, allocations: 14.67 kB / 0.9617 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of SimCode: time 9.22e-07/0.6599, allocations: 0 / 0.9617 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of Templates: time 0.003882/0.6638, allocations: 1.244 MB / 0.963 GB, free: 1.016 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches