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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001118/0.001118, allocations: 110.5 kB / 16.41 MB, free: 5.977 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.001213/0.001213, allocations: 188.3 kB / 17.34 MB, free: 5.586 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.2 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 63.89 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9565/0.9581, allocations: 140.4 MB / 1.089 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002829/0.9609, allocations: 1.548 MB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.962, allocations: 0.5737 MB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.423e-05/0.9621, allocations: 0.875 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.9622, allocations: 10.89 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.549e-05/0.9623, allocations: 15.78 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.9628, allocations: 91.72 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.9629, allocations: 105.1 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.9631, allocations: 16.27 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.9632, allocations: 49.31 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.9633, allocations: 45.59 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.9634, allocations: 11.34 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.9636, allocations: 94.42 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.652e-05/0.9636, allocations: 17.36 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.754e-05/0.9637, allocations: 37.91 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002743/0.964, allocations: 139.9 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.964, allocations: 4 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.076e-06/0.964, allocations: 0 / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.964, allocations: 4.688 kB / 1.091 GB, free: 3.734 MB / 0.8575 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.0007916/0.9648, allocations: 450.3 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.9648, allocations: 8.844 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.687e-05/0.9649, allocations: 14.52 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.9651, allocations: 187.9 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.9651, allocations: 6.562 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.9651, allocations: 4.828 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.9654, allocations: 105.8 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.9655, allocations: 5.688 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.9655, allocations: 4 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.9655, allocations: 5.188 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.9659, allocations: 83.06 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006419/0.9665, allocations: 351.9 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.9669, allocations: 103.6 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.967, allocations: 55.72 kB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.9671, allocations: 0.7188 kB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.9674, allocations: 118.6 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.894e-06/0.9674, allocations: 0 / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0006909/0.9681, allocations: 204.5 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.9682, allocations: 53.8 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.9683, allocations: 145.5 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.9683, allocations: 27.2 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.9684, allocations: 98.69 kB / 1.093 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.9684, allocations: 29.91 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.9685, allocations: 37.61 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.556e-05/0.9686, allocations: 324.7 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.9688, allocations: 52.95 kB / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.969, allocations: 65.67 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.9693, allocations: 142.6 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.9694, allocations: 0.75 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004895/0.9699, allocations: 199.2 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.9699, allocations: 32.92 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.9699, allocations: 0.875 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.9699, allocations: 1.031 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.9701, allocations: 21.48 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.9701, allocations: 5.984 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.9702, allocations: 18.27 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.9703, allocations: 3.781 kB / 1.094 GB, free: 1.609 MB / 0.8575 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.559e-05/0.9704, allocations: 127 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.9704, allocations: 8.5 kB / 1.094 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.9704, allocations: 16.62 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.9705, allocations: 3.984 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.9705, allocations: 0.625 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.9705, allocations: 1.188 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.9707, allocations: 210 kB / 1.094 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9707, allocations: 0.7188 kB / 1.094 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.9708, allocations: 20.83 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.9708, allocations: 0.7188 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.9708, allocations: 2.719 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.9709, allocations: 0 / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.9709, allocations: 5.641 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.9713, allocations: 184.4 kB / 1.095 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.9714, allocations: 84.59 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.9714, allocations: 1.312 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.9715, allocations: 14.94 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.9716, allocations: 14.47 kB / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.9716, allocations: 6.312 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.174e-05/0.9717, allocations: 107.3 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8.82e-07/0.9717, allocations: 0 / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003128/0.972, allocations: 44.94 kB / 1.095 GB, free: 0.9414 MB / 0.8575 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.0002038/0.9723, allocations: 123.3 kB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005264/0.9728, allocations: 178.7 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9728, allocations: 0.8125 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.973, allocations: 65.94 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.9733, allocations: 18.06 kB / 1.095 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006159/0.9739, allocations: 251.9 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.9741, allocations: 0.6982 MB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.604e-05/0.9742, allocations: 17.66 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/0.9742, allocations: 0 / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of Templates: time 0.00451/0.9787, allocations: 1.529 MB / 1.098 GB, free: 15.71 MB / 0.8731 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