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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001315/0.001315, allocations: 111.3 kB / 16.41 MB, free: 6.488 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.001347/0.001348, allocations: 187 kB / 17.34 MB, free: 5.762 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.428/2.428, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 67.89 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7796/0.7809, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002109/0.7831, allocations: 0.8777 MB / 1.209 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.7849, allocations: 1.314 MB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.089e-05/0.785, allocations: 4 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.7852, allocations: 15.8 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.7853, allocations: 23.78 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000738/0.786, allocations: 274.4 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.7864, allocations: 295.4 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.7865, allocations: 29.11 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.7868, allocations: 123.7 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.787, allocations: 131.6 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.7871, allocations: 24 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.7872, allocations: 31.98 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.628e-05/0.7873, allocations: 47.88 kB / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.7874, allocations: 103.6 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.7877, allocations: 267 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.7877, allocations: 3.938 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.502e-06/0.7878, allocations: 0 / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.7878, allocations: 0 / 1.212 GB, free: 10.1 MB / 0.9356 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.0009904/0.7888, allocations: 0.5396 MB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.7888, allocations: 8.031 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/0.7889, allocations: 20.75 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.7892, allocations: 224.1 kB / 1.213 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.7892, allocations: 24.36 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.7893, allocations: 16.31 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.7896, allocations: 186.8 kB / 1.213 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.7896, allocations: 192 / 1.213 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.7896, allocations: 11.92 kB / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.7897, allocations: 0 / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.7899, allocations: 92.17 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.7905, allocations: 476.7 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.7907, allocations: 138.4 kB / 1.214 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.7909, allocations: 96.81 kB / 1.214 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.7909, allocations: 160 / 1.214 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.7913, allocations: 223.6 kB / 1.214 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.7913, allocations: 3.938 kB / 1.214 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28): time 0.0007961/0.7921, allocations: 447.4 kB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.7921, allocations: 63.39 kB / 1.214 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.7922, allocations: 131.9 kB / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.7923, allocations: 41.7 kB / 1.214 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.561e-05/0.7924, allocations: 104.6 kB / 1.215 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.548e-05/0.7925, allocations: 67.19 kB / 1.215 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.7926, allocations: 93.98 kB / 1.215 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.7927, allocations: 334.8 kB / 1.215 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.793, allocations: 148.7 kB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.7933, allocations: 205.1 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004974/0.7938, allocations: 366.3 kB / 1.216 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.7938, allocations: 4 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007965/0.7946, allocations: 0.4993 MB / 1.216 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.7947, allocations: 67.39 kB / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.7947, allocations: 4 kB / 1.216 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.7947, allocations: 4 kB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.795, allocations: 51.91 kB / 1.216 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.795, allocations: 4 kB / 1.216 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.7954, allocations: 71.7 kB / 1.216 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.077e-05/0.7954, allocations: 27.98 kB / 1.216 GB, free: 5.059 MB / 0.9356 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.0001804/0.7956, allocations: 165.7 kB / 1.217 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.7957, allocations: 15.81 kB / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.536e-05/0.7957, allocations: 17.86 kB / 1.217 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.7957, allocations: 7.938 kB / 1.217 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.7957, allocations: 0 / 1.217 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.7957, allocations: 8.016 kB / 1.217 GB, free: 4.836 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007629/0.7965, allocations: 0.6545 MB / 1.217 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7965, allocations: 0 / 1.217 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.172e-05/0.7966, allocations: 7.984 kB / 1.217 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.7966, allocations: 4 kB / 1.217 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.7966, allocations: 7.984 kB / 1.217 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.7966, allocations: 3.938 kB / 1.217 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7966, allocations: 0 / 1.217 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005844/0.7972, allocations: 467 kB / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.752e-05/0.7973, allocations: 92.86 kB / 1.218 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.669e-05/0.7974, allocations: 19.97 kB / 1.218 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.7975, allocations: 7.938 kB / 1.218 GB, free: 3.492 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.7976, allocations: 19.97 kB / 1.218 GB, free: 3.473 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.7976, allocations: 19.98 kB / 1.218 GB, free: 3.453 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.246e-05/0.7977, allocations: 96.98 kB / 1.218 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.854e-06/0.7977, allocations: 0 / 1.218 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003362/0.798, allocations: 79.86 kB / 1.218 GB, free: 3.281 MB / 0.9356 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.0001971/0.7982, allocations: 133.5 kB / 1.218 GB, free: 3.145 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007701/0.799, allocations: 450.7 kB / 1.219 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.799, allocations: 0 / 1.219 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.7992, allocations: 116.1 kB / 1.219 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.7996, allocations: 39.97 kB / 1.219 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005951/0.8002, allocations: 342.9 kB / 1.219 GB, free: 2.168 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.8005, allocations: 0.7206 MB / 1.22 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.8006, allocations: 23.42 kB / 1.22 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of SimCode: time 5.61e-07/0.8006, allocations: 0 / 1.22 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of Templates: time 0.005444/0.8061, allocations: 3.062 MB / 1.223 GB, free: 14.36 MB / 0.9512 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