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.008269/0.008269, allocations: 96.91 kB / 15.87 MB, free: 6.289 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.001725/0.001725, allocations: 202 kB / 16.79 MB, free: 6.215 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.427/1.427, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.02/3.02, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 65.19 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3133, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002268/0.3156, allocations: 0.9271 MB / 1.054 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001827/0.3175, allocations: 1.342 MB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.263e-05/0.3176, allocations: 0 / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.3177, allocations: 15.92 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.3179, allocations: 23.78 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007084/0.3186, allocations: 244.7 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002797/0.3189, allocations: 259.4 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.319, allocations: 21.12 kB / 1.056 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.3192, allocations: 119.6 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.3195, allocations: 107.7 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.3196, allocations: 12 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.3197, allocations: 39.91 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.926e-05/0.3198, allocations: 35.84 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.3199, allocations: 99.61 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.3202, allocations: 183.8 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3202, allocations: 0 / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3202, allocations: 0 / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.3202, allocations: 0 / 1.056 GB, free: 4.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.001087/0.3213, allocations: 0.5378 MB / 1.057 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3213, allocations: 11.97 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.626e-05/0.3214, allocations: 20.75 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.3217, allocations: 237.9 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.3217, allocations: 16.36 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.3218, allocations: 20.38 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/0.3222, allocations: 187.5 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.3222, allocations: 192 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.3223, allocations: 11.88 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.3223, allocations: 8 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.3225, allocations: 88.17 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.3232, allocations: 468.7 kB / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.3235, allocations: 134.5 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3237, allocations: 96.81 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.3237, allocations: 3.984 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.324, allocations: 219.8 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.324, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28): time 0.0008768/0.3249, allocations: 447.4 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.325, allocations: 63.39 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.3251, allocations: 139.5 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.433e-05/0.3252, allocations: 41.7 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/0.3253, allocations: 108.5 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.595e-05/0.3253, allocations: 71.17 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.3255, allocations: 86 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3256, allocations: 338.8 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.3259, allocations: 152.6 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/0.3263, allocations: 201.2 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005225/0.3268, allocations: 358.4 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3268, allocations: 0 / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008539/0.3277, allocations: 0.4953 MB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/0.3278, allocations: 67.39 kB / 1.061 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3278, allocations: 4 kB / 1.061 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.3278, allocations: 4.125 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.328, allocations: 56.05 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3281, allocations: 7.984 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.3285, allocations: 79.61 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.3285, allocations: 23.98 kB / 1.061 GB, free: 15.83 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.000179/0.3287, allocations: 170 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.3288, allocations: 23.73 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.05e-05/0.3288, allocations: 9.875 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3288, allocations: 4 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3288, allocations: 0 / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3288, allocations: 3.938 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008337/0.3297, allocations: 0.6544 MB / 1.062 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3297, allocations: 7.984 kB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.756e-05/0.3297, allocations: 12 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3298, allocations: 0 / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.3298, allocations: 7.984 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3298, allocations: 3.938 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3298, allocations: 0 / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000646/0.3304, allocations: 468.7 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.3305, allocations: 88.92 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-05/0.3306, allocations: 23.98 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.3307, allocations: 11.92 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.3308, allocations: 15.98 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3308, allocations: 19.92 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.418e-05/0.3309, allocations: 104.5 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3309, allocations: 4 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003587/0.3312, allocations: 60 kB / 1.062 GB, free: 14.07 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.0001851/0.3314, allocations: 141.3 kB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007022/0.3321, allocations: 446.6 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3322, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000228/0.3324, allocations: 122.7 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3328, allocations: 40.16 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006363/0.3334, allocations: 379.1 kB / 1.063 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.3337, allocations: 0.7167 MB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.375e-05/0.3338, allocations: 15.44 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3338, allocations: 0 / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of Templates: time 0.00526/0.339, allocations: 3.039 MB / 1.067 GB, free: 9.117 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