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.008545/0.008545, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001638/0.001638, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.011/3.011, allocations: 461.8 MB / 0.7347 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 60.09 kB / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3637, allocations: 157.4 MB / 1.208 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003255/0.367, allocations: 1.55 MB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.3682, allocations: 0.5808 MB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.026e-05/0.3683, allocations: 0 / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.3684, allocations: 19.86 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.994e-05/0.3685, allocations: 11.81 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.369, allocations: 95.77 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.3692, allocations: 95.69 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.3693, allocations: 20.16 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.3695, allocations: 47.91 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.3696, allocations: 43.77 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.3696, allocations: 11.98 kB / 1.21 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.3698, allocations: 91.84 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.245e-05/0.3698, allocations: 15.98 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.318e-05/0.3699, allocations: 39.73 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.3702, allocations: 151.5 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3702, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3702, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.3702, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 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.0008571/0.3711, allocations: 452.7 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.3711, allocations: 8.625 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.428e-05/0.3712, allocations: 16.78 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.3714, allocations: 194.4 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.3714, allocations: 384 / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.3714, allocations: 4.375 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.3718, allocations: 117.8 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3718, allocations: 4 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3718, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.572e-05/0.3718, allocations: 7.984 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.3722, allocations: 83.92 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006893/0.3729, allocations: 356.6 kB / 1.212 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.3732, allocations: 86.45 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.3734, allocations: 60.88 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3734, allocations: 0 / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/0.3738, allocations: 115.3 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 2.154e-06/0.3738, allocations: 0 / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0006641/0.3745, allocations: 205.4 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.3745, allocations: 59.41 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.3746, allocations: 137.7 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3747, allocations: 25.7 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.3747, allocations: 100.1 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.3748, allocations: 35.61 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.501e-05/0.3748, allocations: 25.7 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.375, allocations: 322.8 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.3752, allocations: 59.95 kB / 1.213 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.3753, allocations: 59.88 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.3757, allocations: 142.9 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3757, allocations: 0 / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004663/0.3762, allocations: 203.3 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.3763, allocations: 39.34 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3763, allocations: 7.875 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3763, allocations: 0 / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3764, allocations: 19.98 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3764, allocations: 0 / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.3766, allocations: 27.81 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3766, allocations: 4 kB / 1.213 GB, free: 3.828 MB / 0.9669 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 0.0001042/0.3767, allocations: 121.8 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.98e-05/0.3768, allocations: 7.906 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.3768, allocations: 16.7 kB / 1.213 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3768, allocations: 4 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3768, allocations: 0 / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3768, allocations: 4 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.377, allocations: 197.5 kB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.377, allocations: 0 / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.3771, allocations: 19.98 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3772, allocations: 0 / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.3772, allocations: 11.98 kB / 1.214 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3772, allocations: 3.938 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3772, allocations: 0 / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004402/0.3776, allocations: 184.9 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.3777, allocations: 85.02 kB / 1.214 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.3777, allocations: 0 / 1.214 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.3779, allocations: 11.98 kB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.054e-05/0.3779, allocations: 11.98 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.378, allocations: 11.92 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.812e-05/0.378, allocations: 110.1 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.378, allocations: 0 / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002534/0.3783, allocations: 47.94 kB / 1.214 GB, free: 2.898 MB / 0.9669 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.0001845/0.3785, allocations: 111.2 kB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004872/0.379, allocations: 187.2 kB / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.379, allocations: 3.938 kB / 1.214 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.3792, allocations: 67.94 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.3794, allocations: 8 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005885/0.38, allocations: 239.5 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.3803, allocations: 0.6963 MB / 1.215 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.621e-05/0.3804, allocations: 19.97 kB / 1.215 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/0.3804, allocations: 19.42 kB / 1.215 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of SimCode: time 2.775e-06/0.3805, allocations: 0 / 1.215 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of Templates: time 0.004345/0.3848, allocations: 1.446 MB / 1.217 GB, free: 44 kB / 0.9669 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches