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.00104/0.00104, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001213/0.001213, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.878/2.878, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.000428, allocations: 7.906 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.385, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001222/0.3863, allocations: 0.5651 MB / 1.059 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002158/0.3885, allocations: 1.291 MB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3886, allocations: 7.938 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.3887, allocations: 3.938 kB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.3889, allocations: 27.78 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008174/0.3898, allocations: 234.5 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000316/0.3901, allocations: 239.3 kB / 1.06 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3902, allocations: 25.09 kB / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.3905, allocations: 111.7 kB / 1.06 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.3907, allocations: 103.7 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.436e-05/0.3908, allocations: 12 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.3909, allocations: 27.92 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.391, allocations: 35.89 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3911, allocations: 57.58 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.3914, allocations: 183.8 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3914, allocations: 0 / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.444e-06/0.3914, allocations: 0 / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.3914, allocations: 0 / 1.061 GB, free: 2.43 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.001133/0.3926, allocations: 494.6 kB / 1.061 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.3926, allocations: 8.031 kB / 1.061 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.3928, allocations: 23.89 kB / 1.061 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3931, allocations: 232.3 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.3932, allocations: 12 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.579e-05/0.3933, allocations: 27.94 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.3937, allocations: 180.8 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3937, allocations: 0 / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.3938, allocations: 7.984 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.3938, allocations: 4 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.394, allocations: 88.17 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/0.3948, allocations: 484.6 kB / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.3951, allocations: 134.7 kB / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.3952, allocations: 93 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.3953, allocations: 8 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003702/0.3956, allocations: 219.8 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.3957, allocations: 0 / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of matching and sorting (n=28): time 0.0009144/0.3966, allocations: 451.5 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.3966, allocations: 55.41 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.3968, allocations: 143.5 kB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.3968, allocations: 45.67 kB / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.855e-05/0.3969, allocations: 100.5 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.118e-05/0.397, allocations: 71.17 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.397, allocations: 12 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3972, allocations: 334.8 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.3975, allocations: 152.6 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.3979, allocations: 209.1 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.3983, allocations: 228.4 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3983, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001001/0.3993, allocations: 0.4954 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.823e-05/0.3994, allocations: 67.41 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.3994, allocations: 3.984 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.3995, allocations: 8.125 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3997, allocations: 47.92 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.3998, allocations: 3.984 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004669/0.4002, allocations: 101.6 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/0.4003, allocations: 19.98 kB / 1.065 GB, free: 13.66 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002528/0.4006, allocations: 169.8 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.843e-05/0.4006, allocations: 15.81 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.4007, allocations: 17.88 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.4007, allocations: 0 / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4007, allocations: 3.938 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.4007, allocations: 3.984 kB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4018, allocations: 0.6583 MB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4018, allocations: 0 / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.241e-05/0.4019, allocations: 16 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/0.4019, allocations: 3.984 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.4019, allocations: 7.984 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.402, allocations: 0 / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.402, allocations: 0 / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008058/0.4028, allocations: 463.7 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.4029, allocations: 100.9 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.987e-05/0.403, allocations: 15.98 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.4031, allocations: 11.98 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.4032, allocations: 19.97 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.4033, allocations: 19.98 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001046/0.4034, allocations: 103.2 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.71e-07/0.4034, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000454/0.4038, allocations: 67.98 kB / 1.067 GB, free: 11.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000344/0.4042, allocations: 141.3 kB / 1.067 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008256/0.405, allocations: 462.5 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4051, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.4053, allocations: 117.6 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.4057, allocations: 39.91 kB / 1.068 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007022/0.4064, allocations: 343 kB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.4068, allocations: 0.7167 MB / 1.069 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.499e-05/0.4069, allocations: 21.55 kB / 1.069 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.4069, allocations: 15.44 kB / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.407, allocations: 0 / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of Templates: time 0.007871/0.4148, allocations: 3.264 MB / 1.072 GB, free: 6.734 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches