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.001534/0.001534, allocations: 107.7 kB / 16.36 MB, free: 6.285 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.001609/0.001609, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.491/1.491, 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.0-master/package.mo): time 2.533/2.533, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002457/0.002458, allocations: 65.28 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3735, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002399/0.3759, allocations: 0.8824 MB / 1.028 GB, free: 1.156 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002162/0.3781, allocations: 1.311 MB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.3782, allocations: 7.938 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.3784, allocations: 11.88 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.3786, allocations: 31.7 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009161/0.3795, allocations: 274.2 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.38, allocations: 295.3 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.3801, allocations: 29.11 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002984/0.3804, allocations: 143.6 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.3808, allocations: 119.7 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.391e-05/0.3808, allocations: 23.98 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.381, allocations: 39.98 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.333e-05/0.3811, allocations: 39.84 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.3813, allocations: 107.6 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.3816, allocations: 259.2 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3816, allocations: 0 / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3816, allocations: 0 / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.3816, allocations: 0 / 1.03 GB, free: 14.48 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.001036/0.3827, allocations: 0.5429 MB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3827, allocations: 12.02 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.75e-05/0.3828, allocations: 20.75 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.3831, allocations: 236 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.3832, allocations: 12.38 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/0.3832, allocations: 24.36 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.3836, allocations: 183.4 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.3836, allocations: 192 / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.3837, allocations: 15.92 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3837, allocations: 4 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.3839, allocations: 89.59 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006625/0.3846, allocations: 464.8 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.3848, allocations: 138.5 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.385, allocations: 92.81 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.3851, allocations: 4 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.3854, allocations: 212.5 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=28): time 1.923e-06/0.3854, allocations: 0 / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28): time 0.0008798/0.3863, allocations: 463.3 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.3864, allocations: 51.41 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.3865, allocations: 148.3 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.3866, allocations: 41.7 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.05e-05/0.3866, allocations: 104.6 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.688e-05/0.3867, allocations: 67.19 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.3869, allocations: 89.98 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.387, allocations: 330.8 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.3873, allocations: 144.7 kB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00038/0.3877, allocations: 217.1 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.3882, allocations: 370.8 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3882, allocations: 0 / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008308/0.3891, allocations: 0.4907 MB / 1.035 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.26e-05/0.3891, allocations: 67.39 kB / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3891, allocations: 4 kB / 1.035 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3892, allocations: 0 / 1.035 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.3894, allocations: 47.92 kB / 1.035 GB, free: 9.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3894, allocations: 16.05 kB / 1.035 GB, free: 9.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.3898, allocations: 79.56 kB / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.3898, allocations: 19.98 kB / 1.035 GB, free: 9.438 MB / 0.8106 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.0001722/0.39, allocations: 165.8 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.3901, allocations: 19.8 kB / 1.035 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.3901, allocations: 13.88 kB / 1.035 GB, free: 9.234 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.3901, allocations: 4 kB / 1.035 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3901, allocations: 0 / 1.035 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.3901, allocations: 3.938 kB / 1.035 GB, free: 9.227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008065/0.3909, allocations: 0.6583 MB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.391, allocations: 3.938 kB / 1.036 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.346e-05/0.391, allocations: 4 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.391, allocations: 8 kB / 1.036 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.3911, allocations: 15.97 kB / 1.036 GB, free: 8.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.3911, allocations: 7.938 kB / 1.036 GB, free: 8.473 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3911, allocations: 0 / 1.036 GB, free: 8.473 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000585/0.3917, allocations: 451.8 kB / 1.036 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.3917, allocations: 92.86 kB / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.356e-05/0.3918, allocations: 15.98 kB / 1.036 GB, free: 7.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3919, allocations: 15.92 kB / 1.036 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.392, allocations: 15.98 kB / 1.036 GB, free: 7.859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.392, allocations: 23.97 kB / 1.036 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.113e-05/0.3921, allocations: 105.4 kB / 1.036 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3921, allocations: 0 / 1.036 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003618/0.3925, allocations: 60 kB / 1.036 GB, free: 7.676 MB / 0.8106 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.0002347/0.3927, allocations: 137.4 kB / 1.037 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007557/0.3935, allocations: 460.5 kB / 1.037 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3935, allocations: 0 / 1.037 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.3937, allocations: 123.9 kB / 1.037 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.3941, allocations: 27.91 kB / 1.037 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006492/0.3948, allocations: 314.3 kB / 1.037 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3951, allocations: 0.7167 MB / 1.038 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.715e-05/0.3952, allocations: 17.55 kB / 1.038 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.3952, allocations: 27.44 kB / 1.038 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/0.3952, allocations: 3.938 kB / 1.038 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of Templates: time 0.007103/0.4023, allocations: 3.548 MB / 1.042 GB, free: 2.273 MB / 0.8106 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 -s cvode -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) Reference file matches