Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.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.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009831, allocations: 98.8 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.0009455/0.0009456, allocations: 185.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.453/1.453, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.801/2.801, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 10 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3374, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001193/0.3387, allocations: 0.5844 MB / 1.06 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.3408, allocations: 1.326 MB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.3409, allocations: 3.938 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.3411, allocations: 11.92 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.3413, allocations: 31.77 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000797/0.3421, allocations: 242 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.3424, allocations: 263.4 kB / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.3426, allocations: 29.03 kB / 1.062 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.3428, allocations: 111.7 kB / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.3431, allocations: 107.7 kB / 1.062 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.24e-05/0.3432, allocations: 12 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.3433, allocations: 31.98 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.992e-05/0.3434, allocations: 35.83 kB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.3435, allocations: 121.3 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.3438, allocations: 175.8 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3438, allocations: 3.938 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3438, allocations: 0 / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.3438, allocations: 4 kB / 1.062 GB, free: 1.879 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009045/0.3447, allocations: 498.8 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3448, allocations: 15.97 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.3449, allocations: 16.84 kB / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.3452, allocations: 232 kB / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.952e-05/0.3453, allocations: 12.36 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.968e-05/0.3454, allocations: 24.31 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.3458, allocations: 185.3 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.3458, allocations: 4.188 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.3458, allocations: 15.88 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3458, allocations: 0 / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.346, allocations: 92.17 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006745/0.3467, allocations: 472.8 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.347, allocations: 146.4 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.3472, allocations: 92.81 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.3472, allocations: 0 / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.3476, allocations: 219.7 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.893e-06/0.3476, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.000864/0.3485, allocations: 459.5 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.3485, allocations: 59.39 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.3487, allocations: 143.4 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.17e-05/0.3487, allocations: 41.69 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.918e-05/0.3488, allocations: 100.7 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.794e-05/0.3489, allocations: 71.17 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.349, allocations: 41.7 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3491, allocations: 334.8 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.3494, allocations: 148.7 kB / 1.066 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.3498, allocations: 213.1 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.3503, allocations: 362.4 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3503, allocations: 3.938 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008744/0.3512, allocations: 0.5031 MB / 1.067 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.647e-05/0.3513, allocations: 69.42 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3513, allocations: 4 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3513, allocations: 0 / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.3516, allocations: 60.03 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3516, allocations: 4 kB / 1.067 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.3521, allocations: 99.61 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.3522, allocations: 23.98 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001934/0.3524, allocations: 162.1 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.3524, allocations: 19.89 kB / 1.067 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.3524, allocations: 17.88 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3525, allocations: 4 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3525, allocations: 0 / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3525, allocations: 3.938 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008823/0.3534, allocations: 0.6661 MB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3534, allocations: 4 kB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.3534, allocations: 4 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3534, allocations: 8 kB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.3535, allocations: 11.97 kB / 1.068 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3535, allocations: 3.938 kB / 1.068 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3535, allocations: 0 / 1.068 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006216/0.3541, allocations: 467.7 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.3542, allocations: 88.92 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.3542, allocations: 19.98 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.3544, allocations: 11.92 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.3544, allocations: 15.98 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3545, allocations: 23.91 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.009e-05/0.3546, allocations: 105.1 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3546, allocations: 0 / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003644/0.3549, allocations: 60 kB / 1.069 GB, free: 11.11 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002217/0.3552, allocations: 137.4 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007453/0.3559, allocations: 459.9 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3559, allocations: 0 / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.3562, allocations: 127.9 kB / 1.069 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.3566, allocations: 32.22 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.3573, allocations: 392.6 kB / 1.07 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3575, allocations: 0.7167 MB / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/0.3576, allocations: 19.44 kB / 1.07 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.3576, allocations: 0 / 1.07 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of Templates: time 0.005779/0.3634, allocations: 3.012 MB / 1.073 GB, free: 6.172 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,triMovMea.u,triMovMea.y,triMovMea1.y,booPul.y,triMovMea2.y,booPul1.y Variables in the result:booPul.y,booPul1.y,time,triMovMea.u,triMovMea.y,triMovMea1.y,triMovMea2.y