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.001575/0.001575, allocations: 108 kB / 16.36 MB, free: 6.336 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.001696/0.001696, allocations: 195.4 kB / 17.29 MB, free: 5.883 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.546/2.546, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 72.31 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3186, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002908/0.3216, allocations: 0.8867 MB / 1.028 GB, free: 1.184 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002088/0.3237, allocations: 1.315 MB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.266e-05/0.3238, allocations: 4 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.324, allocations: 15.81 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.3242, allocations: 31.77 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008526/0.325, allocations: 269.9 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.3254, allocations: 287.5 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.3255, allocations: 33.11 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002047/0.3257, allocations: 139.6 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.326, allocations: 119.7 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.3261, allocations: 23.98 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.509e-05/0.3262, allocations: 39.98 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.3263, allocations: 39.84 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.3264, allocations: 107.6 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.3267, allocations: 263.2 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3268, allocations: 0 / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3268, allocations: 4 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.3268, allocations: 0 / 1.03 GB, free: 14.5 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.001019/0.3278, allocations: 0.5378 MB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3279, allocations: 8.031 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.246e-05/0.328, allocations: 24.73 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.3283, allocations: 232 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.3283, allocations: 16.31 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3284, allocations: 24.36 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.3287, allocations: 183.5 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3288, allocations: 192 / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.3288, allocations: 11.92 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.3288, allocations: 7.938 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.329, allocations: 88.78 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006772/0.3297, allocations: 468.7 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.33, allocations: 138.5 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.3302, allocations: 92.81 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.3302, allocations: 0 / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003548/0.3306, allocations: 216.5 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.3306, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28): time 0.000867/0.3315, allocations: 464.2 kB / 1.033 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.3315, allocations: 51.41 kB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.3317, allocations: 142 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.3317, allocations: 41.69 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/0.3318, allocations: 104.6 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.526e-05/0.3319, allocations: 67.19 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3321, allocations: 89.98 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3322, allocations: 330.8 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/0.3325, allocations: 152.7 kB / 1.034 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.3329, allocations: 209.1 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005225/0.3334, allocations: 366.9 kB / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.3334, allocations: 0 / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000941/0.3344, allocations: 0.4946 MB / 1.035 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/0.3345, allocations: 69.58 kB / 1.035 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.3345, allocations: 4.125 kB / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.3345, allocations: 8 kB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3348, allocations: 43.92 kB / 1.035 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.3348, allocations: 7.984 kB / 1.035 GB, free: 9.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.3353, allocations: 79.56 kB / 1.035 GB, free: 9.492 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/0.3353, allocations: 19.98 kB / 1.035 GB, free: 9.473 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.0002245/0.3356, allocations: 165.8 kB / 1.035 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.3356, allocations: 19.8 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.3357, allocations: 13.88 kB / 1.035 GB, free: 9.27 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.3357, allocations: 4 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.3357, allocations: 0 / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3357, allocations: 3.938 kB / 1.035 GB, free: 9.262 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009561/0.3367, allocations: 0.6622 MB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3367, allocations: 4 kB / 1.036 GB, free: 8.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.337e-05/0.3367, allocations: 4 kB / 1.036 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.3368, allocations: 4 kB / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.3368, allocations: 19.97 kB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.3368, allocations: 7.875 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3368, allocations: 0 / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000739/0.3376, allocations: 455.7 kB / 1.036 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.3376, allocations: 96.86 kB / 1.036 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.3377, allocations: 15.98 kB / 1.036 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.3378, allocations: 11.92 kB / 1.036 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.935e-05/0.3379, allocations: 15.98 kB / 1.036 GB, free: 7.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.3379, allocations: 23.97 kB / 1.036 GB, free: 7.863 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.773e-05/0.338, allocations: 99.27 kB / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.338, allocations: 0 / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003781/0.3384, allocations: 64 kB / 1.036 GB, free: 7.703 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.0002507/0.3387, allocations: 137.4 kB / 1.037 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007971/0.3395, allocations: 458.1 kB / 1.037 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3395, allocations: 0 / 1.037 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.3397, allocations: 123.9 kB / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.3401, allocations: 28.22 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.3408, allocations: 313.4 kB / 1.037 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3411, allocations: 0.7167 MB / 1.038 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.473e-05/0.3412, allocations: 21.55 kB / 1.038 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.3413, allocations: 23.44 kB / 1.038 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of SimCode: time 4.81e-07/0.3413, allocations: 0 / 1.038 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of Templates: time 0.008005/0.3493, allocations: 3.555 MB / 1.042 GB, free: 2.297 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 gbode -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