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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009522/0.0009522, allocations: 99.19 kB / 16.02 MB, free: 76 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.001431/0.001431, allocations: 186.8 kB / 16.92 MB, free: 6.75 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.819/2.819, allocations: 462.6 MB / 0.7371 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003571, allocations: 11.69 kB / 0.9034 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3327, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002029/0.3348, allocations: 1.268 MB / 1.061 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3361, allocations: 0.5843 MB / 1.061 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.01e-05/0.3362, allocations: 0 / 1.061 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.3363, allocations: 15.92 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.346e-05/0.3364, allocations: 15.8 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.3368, allocations: 63.94 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.337, allocations: 95.62 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3372, allocations: 28.22 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.3373, allocations: 35.84 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.3374, allocations: 47.75 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.3375, allocations: 4 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.3376, allocations: 47.97 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.04e-05/0.3377, allocations: 19.86 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.146e-05/0.3377, allocations: 65.48 kB / 1.062 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.3379, allocations: 88.05 kB / 1.062 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3379, allocations: 0 / 1.062 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3379, allocations: 4 kB / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3379, allocations: 0 / 1.062 GB, free: 2.609 MB / 0.8106 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.0008399/0.3388, allocations: 448.9 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3388, allocations: 15.91 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.682e-05/0.3389, allocations: 16.75 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.3391, allocations: 192.2 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3392, allocations: 4.375 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.3392, allocations: 12.36 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.3396, allocations: 117.8 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3396, allocations: 8 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.3396, allocations: 4 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.3396, allocations: 4 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.34, allocations: 103.9 kB / 1.063 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007066/0.3407, allocations: 360.6 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.3411, allocations: 106.4 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.3413, allocations: 72.88 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.3413, allocations: 0 / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003354/0.3416, allocations: 123.3 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.644e-06/0.3416, allocations: 0 / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0007228/0.3424, allocations: 233.4 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.3424, allocations: 55.41 kB / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.3426, allocations: 144.4 kB / 1.064 GB, free: 444 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.3426, allocations: 29.7 kB / 1.064 GB, free: 408 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.3427, allocations: 96.05 kB / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.3427, allocations: 31.55 kB / 1.064 GB, free: 276 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.305e-05/0.3428, allocations: 21.78 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3429, allocations: 326.8 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.3432, allocations: 71.89 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.3434, allocations: 64.34 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.3438, allocations: 166.4 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3438, allocations: 4.094 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000508/0.3443, allocations: 219.1 kB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.3443, allocations: 33.7 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3444, allocations: 0 / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3444, allocations: 0 / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.3445, allocations: 27.97 kB / 1.065 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3446, allocations: 0 / 1.065 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.3447, allocations: 27.92 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.3447, allocations: 4 kB / 1.065 GB, free: 15.28 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.0001187/0.3449, allocations: 125.8 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.3449, allocations: 7.906 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.3449, allocations: 12.72 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.345, allocations: 11.98 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.345, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.345, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.3452, allocations: 197.5 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3452, allocations: 0 / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.3453, allocations: 23.91 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3453, allocations: 11.94 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.3453, allocations: 4 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3453, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3453, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004786/0.3458, allocations: 208.9 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.3459, allocations: 81.02 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.3459, allocations: 7.984 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.3461, allocations: 19.98 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/0.3461, allocations: 15.92 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3462, allocations: 7.984 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.04e-05/0.3462, allocations: 105.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3462, allocations: 0 / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002592/0.3465, allocations: 39.94 kB / 1.065 GB, free: 14.32 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.0002004/0.3467, allocations: 115.2 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000517/0.3472, allocations: 207.3 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3472, allocations: 0 / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.3475, allocations: 75.94 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.3477, allocations: 11.98 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006028/0.3483, allocations: 288.7 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.3486, allocations: 0.7043 MB / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.375e-05/0.3487, allocations: 15.42 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of SimCode: time 4.4e-07/0.3487, allocations: 3.938 kB / 1.067 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of Templates: time 0.003751/0.3524, allocations: 1.5 MB / 1.068 GB, free: 11.34 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches