Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001192/0.001192, allocations: 105.2 kB / 15.99 MB, free: 6.348 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.001257/0.001257, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.339/1.339, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.571/2.571, allocations: 469.8 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 58.62 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002084/0.3021, allocations: 0.9234 MB / 1.065 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3038, allocations: 1.314 MB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.178e-05/0.3039, allocations: 11.88 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.846e-05/0.304, allocations: 7.938 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.3041, allocations: 23.78 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006313/0.3048, allocations: 242 kB / 1.067 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.3051, allocations: 291.5 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3052, allocations: 33.09 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.3054, allocations: 135.6 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.3056, allocations: 111.7 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.3057, allocations: 24 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.431e-05/0.3058, allocations: 39.97 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.3058, allocations: 43.84 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.306, allocations: 107.6 kB / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.3062, allocations: 187.8 kB / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3062, allocations: 0 / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.677e-06/0.3062, allocations: 0 / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.3062, allocations: 3.938 kB / 1.068 GB, free: 11.62 MB / 0.8419 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.001118/0.3074, allocations: 0.53 MB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3074, allocations: 16.02 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.77e-05/0.3075, allocations: 20.75 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.3078, allocations: 234 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.3078, allocations: 12.31 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.3079, allocations: 28.36 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.3082, allocations: 186.7 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3083, allocations: 192 / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.3083, allocations: 11.92 kB / 1.069 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3083, allocations: 4 kB / 1.069 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.3085, allocations: 86.41 kB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006654/0.3092, allocations: 476.7 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.3095, allocations: 134.5 kB / 1.069 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.3096, allocations: 88.81 kB / 1.069 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.3097, allocations: 4 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.31, allocations: 219.8 kB / 1.07 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.31, allocations: 0 / 1.07 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.0008534/0.3109, allocations: 447.4 kB / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.311, allocations: 55.41 kB / 1.07 GB, free: 8.918 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.3111, allocations: 148.3 kB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.3112, allocations: 37.7 kB / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.3113, allocations: 108.6 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/0.3113, allocations: 71.19 kB / 1.07 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.3115, allocations: 93.92 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3117, allocations: 330.8 kB / 1.071 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002981/0.312, allocations: 148.7 kB / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.3123, allocations: 209.1 kB / 1.071 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005332/0.3128, allocations: 362.3 kB / 1.071 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3129, allocations: 0 / 1.071 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008694/0.3137, allocations: 0.5031 MB / 1.072 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.809e-05/0.3138, allocations: 67.39 kB / 1.072 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3138, allocations: 4 kB / 1.072 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3138, allocations: 0 / 1.072 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.314, allocations: 47.92 kB / 1.072 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.3141, allocations: 7.984 kB / 1.072 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003881/0.3145, allocations: 79.78 kB / 1.072 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.525e-05/0.3145, allocations: 19.98 kB / 1.072 GB, free: 6.602 MB / 0.8419 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.0001851/0.3147, allocations: 167.9 kB / 1.072 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.675e-05/0.3148, allocations: 15.81 kB / 1.072 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.181e-05/0.3148, allocations: 13.88 kB / 1.072 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3148, allocations: 4 kB / 1.072 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3148, allocations: 4 kB / 1.072 GB, free: 6.391 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3148, allocations: 7.922 kB / 1.072 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008504/0.3157, allocations: 0.659 MB / 1.073 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3157, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.87e-05/0.3157, allocations: 11.98 kB / 1.073 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3158, allocations: 0 / 1.073 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.3158, allocations: 7.984 kB / 1.073 GB, free: 5.648 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.411e-06/0.3158, allocations: 7.938 kB / 1.073 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3158, allocations: 4 kB / 1.073 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006274/0.3164, allocations: 455 kB / 1.073 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.3165, allocations: 100.8 kB / 1.074 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.592e-05/0.3166, allocations: 19.98 kB / 1.074 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.3167, allocations: 7.922 kB / 1.074 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.3167, allocations: 19.97 kB / 1.074 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.3168, allocations: 19.98 kB / 1.074 GB, free: 4.992 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.816e-05/0.3169, allocations: 103.3 kB / 1.074 GB, free: 4.891 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3169, allocations: 0 / 1.074 GB, free: 4.891 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003406/0.3172, allocations: 67.98 kB / 1.074 GB, free: 4.824 MB / 0.8419 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.0002065/0.3174, allocations: 137.3 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000776/0.3182, allocations: 478.4 kB / 1.074 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3182, allocations: 4.25 kB / 1.074 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.3185, allocations: 123.9 kB / 1.074 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.3188, allocations: 27.91 kB / 1.075 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006354/0.3194, allocations: 391.9 kB / 1.075 GB, free: 3.629 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.3198, allocations: 0.7206 MB / 1.076 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.97e-05/0.3199, allocations: 19.44 kB / 1.076 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3199, allocations: 0 / 1.076 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of Templates: time 0.4203/0.7402, allocations: 3.031 MB / 1.079 GB, free: 22.11 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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