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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001478/0.001478, allocations: 108 kB / 15.61 MB, free: 152 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.001314/0.001314, allocations: 190.5 kB / 16.53 MB, free: 6.664 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.765/2.765, allocations: 472.7 MB / 0.7452 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 66.45 kB / 0.9121 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3721, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002548/0.3747, allocations: 1.549 MB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009107/0.3756, allocations: 0.5766 MB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.564e-05/0.3757, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.693e-05/0.3757, allocations: 11.88 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.866e-05/0.3758, allocations: 19.84 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.3762, allocations: 87.77 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.3763, allocations: 103.6 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.988e-05/0.3764, allocations: 24.2 kB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.3765, allocations: 43.83 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.3766, allocations: 51.77 kB / 1.071 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.3766, allocations: 8 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3767, allocations: 63.84 kB / 1.071 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.3768, allocations: 23.91 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.512e-05/0.3769, allocations: 39.78 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.3771, allocations: 135.8 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3771, allocations: 4 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3771, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.481e-06/0.3771, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 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.0007803/0.3779, allocations: 448.7 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.3779, allocations: 12.03 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.378, allocations: 12.83 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.3781, allocations: 190.6 kB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.3782, allocations: 12.38 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.3782, allocations: 4.375 kB / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.3785, allocations: 109.9 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.3785, allocations: 0 / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.3785, allocations: 3.938 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.3785, allocations: 7.984 kB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.3789, allocations: 91.91 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.3795, allocations: 348.6 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.3799, allocations: 94.52 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.38, allocations: 60.88 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.3801, allocations: 0 / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/0.3804, allocations: 111.3 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.3804, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0006341/0.3811, allocations: 213.5 kB / 1.073 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3811, allocations: 55.39 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.3812, allocations: 145.6 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.3813, allocations: 25.98 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.3813, allocations: 104 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.3814, allocations: 27.56 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.3814, allocations: 33.64 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3816, allocations: 326.8 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3817, allocations: 51.95 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.3819, allocations: 55.95 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.3823, allocations: 146.6 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3823, allocations: 0 / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000457/0.3828, allocations: 207.1 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/0.3828, allocations: 31.27 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3828, allocations: 0 / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.3828, allocations: 4 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.383, allocations: 19.97 kB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.383, allocations: 4 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.3831, allocations: 19.92 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3832, allocations: 4 kB / 1.074 GB, free: 4.523 MB / 0.8262 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.0001139/0.3833, allocations: 131.4 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.3833, allocations: 11.81 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.3833, allocations: 16.72 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.3834, allocations: 8 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3834, allocations: 3.984 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3834, allocations: 0 / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.3836, allocations: 197.6 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3836, allocations: 0 / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3837, allocations: 19.97 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3837, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3837, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3837, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3838, allocations: 4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004189/0.3842, allocations: 180.8 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.3842, allocations: 89.02 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.3843, allocations: 0 / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.3844, allocations: 20.16 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.3845, allocations: 15.98 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.3845, allocations: 3.938 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.754e-05/0.3846, allocations: 109 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.303e-06/0.3846, allocations: 0 / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002393/0.3848, allocations: 43.86 kB / 1.075 GB, free: 3.59 MB / 0.8262 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.0001648/0.385, allocations: 119.8 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004653/0.3854, allocations: 191.2 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3855, allocations: 0 / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.3857, allocations: 63.89 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.3859, allocations: 17.53 kB / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005461/0.3864, allocations: 231.5 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.3867, allocations: 0.7002 MB / 1.076 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.091e-05/0.3868, allocations: 19.97 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.3868, allocations: 15.44 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3869, allocations: 0 / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of Templates: time 0.00392/0.3908, allocations: 1.404 MB / 1.077 GB, free: 0.7773 MB / 0.8262 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