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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 108.9 kB / 16.45 MB, free: 6.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002253/0.002253, allocations: 198.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.166/3.166, allocations: 496.1 MB / 0.7801 GB, free: 33.35 MB / 0.6231 GB " [Timeout remaining time 176] 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.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 67.03 kB / 1.133 GB, free: 34.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4551/0.4571, allocations: 173.7 MB / 1.303 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002621/0.4598, allocations: 0.8681 MB / 1.304 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002216/0.462, allocations: 1.318 MB / 1.305 GB, free: 440 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.4621, allocations: 0 / 1.305 GB, free: 440 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.4622, allocations: 19.8 kB / 1.305 GB, free: 420 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.4625, allocations: 27.78 kB / 1.305 GB, free: 392 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.4635, allocations: 263.7 kB / 1.305 GB, free: 132 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.4641, allocations: 291.4 kB / 1.305 GB, free: 15.84 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.4642, allocations: 25.11 kB / 1.305 GB, free: 15.82 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003765/0.4646, allocations: 131.7 kB / 1.306 GB, free: 15.69 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003945/0.465, allocations: 127.6 kB / 1.306 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.617e-05/0.4651, allocations: 20 kB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.4652, allocations: 39.98 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.4653, allocations: 39.89 kB / 1.306 GB, free: 15.47 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.4655, allocations: 103.5 kB / 1.306 GB, free: 15.37 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0005632/0.4661, allocations: 267.1 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4661, allocations: 4 kB / 1.306 GB, free: 15.1 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4661, allocations: 0 / 1.306 GB, free: 15.1 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.653e-05/0.4661, allocations: 3.938 kB / 1.306 GB, free: 15.1 MB / 1.014 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.001548/0.4677, allocations: 0.5491 MB / 1.307 GB, free: 14.48 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.4677, allocations: 12.03 kB / 1.307 GB, free: 14.47 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4678, allocations: 20.84 kB / 1.307 GB, free: 14.45 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.4682, allocations: 228.1 kB / 1.307 GB, free: 14.19 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.4683, allocations: 16.36 kB / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-05/0.4683, allocations: 20.38 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.4688, allocations: 194.7 kB / 1.307 GB, free: 13.96 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.4688, allocations: 192 / 1.307 GB, free: 13.96 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.4688, allocations: 11.88 kB / 1.307 GB, free: 13.95 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.4689, allocations: 4 kB / 1.307 GB, free: 13.94 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.4691, allocations: 88.17 kB / 1.307 GB, free: 13.86 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008241/0.4699, allocations: 468.8 kB / 1.308 GB, free: 13.35 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.4702, allocations: 118.5 kB / 1.308 GB, free: 13.22 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.4704, allocations: 80.8 kB / 1.308 GB, free: 13.14 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.4704, allocations: 4 kB / 1.308 GB, free: 13.14 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.4709, allocations: 199.9 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of pre-optimization done (n=28): time 2.605e-06/0.4709, allocations: 3.938 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of matching and sorting (n=28): time 0.001036/0.4719, allocations: 459.3 kB / 1.308 GB, free: 12.47 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.472, allocations: 55.41 kB / 1.309 GB, free: 12.41 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.4722, allocations: 145.4 kB / 1.309 GB, free: 12.26 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.4722, allocations: 41.69 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.4723, allocations: 100.6 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.038e-05/0.4724, allocations: 79.45 kB / 1.309 GB, free: 12.03 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.4727, allocations: 86 kB / 1.309 GB, free: 11.94 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4728, allocations: 338.8 kB / 1.309 GB, free: 11.6 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.4732, allocations: 144.7 kB / 1.309 GB, free: 11.46 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.4736, allocations: 209.1 kB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006057/0.4742, allocations: 358.4 kB / 1.31 GB, free: 10.84 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4742, allocations: 0 / 1.31 GB, free: 10.84 MB / 1.014 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001061/0.4753, allocations: 0.5038 MB / 1.31 GB, free: 10.32 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.971e-05/0.4754, allocations: 67.52 kB / 1.311 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.4754, allocations: 11.94 kB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.4754, allocations: 4 kB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.4757, allocations: 51.91 kB / 1.311 GB, free: 10.18 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.4757, allocations: 4 kB / 1.311 GB, free: 10.17 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/0.4761, allocations: 71.81 kB / 1.311 GB, free: 10.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.704e-05/0.4762, allocations: 23.98 kB / 1.311 GB, free: 10.08 MB / 1.014 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.000234/0.4764, allocations: 174 kB / 1.311 GB, free: 9.902 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.4765, allocations: 19.84 kB / 1.311 GB, free: 9.883 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.786e-05/0.4765, allocations: 13.88 kB / 1.311 GB, free: 9.867 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4765, allocations: 4 kB / 1.311 GB, free: 9.863 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4766, allocations: 0 / 1.311 GB, free: 9.863 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.4766, allocations: 7.922 kB / 1.311 GB, free: 9.855 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.4776, allocations: 0.6622 MB / 1.312 GB, free: 9.137 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4776, allocations: 0 / 1.312 GB, free: 9.137 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.635e-05/0.4777, allocations: 4 kB / 1.312 GB, free: 9.133 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.4777, allocations: 4 kB / 1.312 GB, free: 9.129 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.4777, allocations: 11.97 kB / 1.312 GB, free: 9.117 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4777, allocations: 3.938 kB / 1.312 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4777, allocations: 0 / 1.312 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007799/0.4785, allocations: 456 kB / 1.312 GB, free: 8.652 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.142e-05/0.4786, allocations: 93.02 kB / 1.312 GB, free: 8.543 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.952e-05/0.4786, allocations: 15.98 kB / 1.312 GB, free: 8.527 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.4788, allocations: 15.86 kB / 1.312 GB, free: 8.512 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.4789, allocations: 19.84 kB / 1.312 GB, free: 8.492 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.262e-05/0.4789, allocations: 23.91 kB / 1.312 GB, free: 8.469 MB / 1.014 GB Notification: Performance of sorting global known variables: time 8.653e-05/0.479, allocations: 103.3 kB / 1.312 GB, free: 8.367 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.479, allocations: 0 / 1.312 GB, free: 8.367 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004074/0.4794, allocations: 71.92 kB / 1.312 GB, free: 8.297 MB / 1.014 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.0002765/0.4797, allocations: 137.4 kB / 1.312 GB, free: 8.152 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009724/0.4807, allocations: 414.5 kB / 1.313 GB, free: 7.723 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4807, allocations: 0 / 1.313 GB, free: 7.723 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.4809, allocations: 103.9 kB / 1.313 GB, free: 7.621 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.4813, allocations: 40.2 kB / 1.313 GB, free: 7.582 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009343/0.4823, allocations: 323.9 kB / 1.313 GB, free: 7.242 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.4827, allocations: 0.7167 MB / 1.314 GB, free: 6.496 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.155e-05/0.4828, allocations: 21.55 kB / 1.314 GB, free: 6.473 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.015e-05/0.4829, allocations: 19.44 kB / 1.314 GB, free: 6.457 MB / 1.014 GB Notification: Performance of SimCode: time 9.42e-07/0.4829, allocations: 0 / 1.314 GB, free: 6.457 MB / 1.014 GB Notification: Performance of Templates: time 0.01037/0.4932, allocations: 3.599 MB / 1.318 GB, free: 2.891 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.678768396377563]