Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002173/0.002173, allocations: 159.5 kB / 23.01 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.741/2.741, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 67.89 kB / 0.9819 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012/1.014, allocations: 176.1 MB / 1.154 GB, free: 33.33 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002081/1.016, allocations: 0.8386 MB / 1.155 GB, free: 32.8 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001376/1.018, allocations: 1.336 MB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.595e-05/1.018, allocations: 2.625 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/1.018, allocations: 11.81 kB / 1.156 GB, free: 31.83 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001287/1.018, allocations: 35.88 kB / 1.156 GB, free: 31.81 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/1.019, allocations: 277.9 kB / 1.156 GB, free: 31.67 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002783/1.019, allocations: 276.7 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/1.019, allocations: 33.34 kB / 1.157 GB, free: 31.54 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/1.019, allocations: 129.8 kB / 1.157 GB, free: 31.49 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/1.02, allocations: 122 kB / 1.157 GB, free: 31.44 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.217e-05/1.02, allocations: 22.84 kB / 1.157 GB, free: 31.44 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/1.02, allocations: 38.81 kB / 1.157 GB, free: 31.44 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/1.02, allocations: 52.75 kB / 1.157 GB, free: 31.41 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/1.02, allocations: 90.92 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000304/1.02, allocations: 266.2 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.02, allocations: 0 / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.673e-06/1.02, allocations: 0 / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.452e-06/1.02, allocations: 0 / 1.157 GB, free: 31.27 MB / 1.076 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.0008345/1.021, allocations: 479.2 kB / 1.158 GB, free: 30.88 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/1.021, allocations: 12.53 kB / 1.158 GB, free: 30.88 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/1.021, allocations: 36 kB / 1.158 GB, free: 30.86 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/1.022, allocations: 181.1 kB / 1.158 GB, free: 30.7 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/1.022, allocations: 12.09 kB / 1.158 GB, free: 30.7 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/1.022, allocations: 18.66 kB / 1.158 GB, free: 30.7 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/1.022, allocations: 186.4 kB / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/1.022, allocations: 192 / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/1.022, allocations: 10.02 kB / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-06/1.022, allocations: 2.906 kB / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/1.022, allocations: 91.94 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004924/1.023, allocations: 359.4 kB / 1.159 GB, free: 30.33 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/1.023, allocations: 117.2 kB / 1.159 GB, free: 30.27 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/1.023, allocations: 82.67 kB / 1.159 GB, free: 30.24 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/1.023, allocations: 3.906 kB / 1.159 GB, free: 30.24 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/1.023, allocations: 216.2 kB / 1.159 GB, free: 30.14 MB / 1.076 GB Notification: Performance of pre-optimization done (n=28): time 1.493e-06/1.023, allocations: 0 / 1.159 GB, free: 30.14 MB / 1.076 GB Notification: Performance of matching and sorting (n=28): time 0.0007709/1.024, allocations: 462.6 kB / 1.159 GB, free: 29.99 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/1.024, allocations: 57.2 kB / 1.16 GB, free: 29.93 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.271e-05/1.024, allocations: 146.2 kB / 1.16 GB, free: 29.8 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/1.024, allocations: 38.55 kB / 1.16 GB, free: 29.77 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.275e-05/1.024, allocations: 104.6 kB / 1.16 GB, free: 29.68 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.221e-05/1.025, allocations: 74.34 kB / 1.16 GB, free: 29.62 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/1.025, allocations: 90.58 kB / 1.16 GB, free: 29.57 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.421e-05/1.025, allocations: 335.9 kB / 1.16 GB, free: 29.25 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002807/1.025, allocations: 205.3 kB / 1.16 GB, free: 29.14 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/1.025, allocations: 271.8 kB / 1.161 GB, free: 28.96 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004254/1.026, allocations: 361 kB / 1.161 GB, free: 28.73 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.026, allocations: 0 / 1.161 GB, free: 28.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007087/1.026, allocations: 0.5517 MB / 1.162 GB, free: 28.43 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/1.026, allocations: 76.19 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.026, allocations: 6.781 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/1.026, allocations: 2.906 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/1.027, allocations: 49.38 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/1.027, allocations: 3.219 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/1.027, allocations: 78.42 kB / 1.162 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/1.027, allocations: 20.64 kB / 1.162 GB, free: 28.33 MB / 1.076 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.0001363/1.027, allocations: 175.2 kB / 1.162 GB, free: 28.18 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/1.027, allocations: 23.59 kB / 1.162 GB, free: 28.17 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/1.027, allocations: 12.94 kB / 1.162 GB, free: 28.16 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.027, allocations: 2.875 kB / 1.162 GB, free: 28.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/1.027, allocations: 0 / 1.162 GB, free: 28.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/1.027, allocations: 0 / 1.162 GB, free: 28.16 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006081/1.028, allocations: 0.5881 MB / 1.163 GB, free: 27.81 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.028, allocations: 4 kB / 1.163 GB, free: 27.81 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/1.028, allocations: 5.625 kB / 1.163 GB, free: 27.81 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/1.028, allocations: 0 / 1.163 GB, free: 27.81 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/1.028, allocations: 16.78 kB / 1.163 GB, free: 27.8 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.028, allocations: 3.938 kB / 1.163 GB, free: 27.8 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.028, allocations: 0 / 1.163 GB, free: 27.8 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/1.029, allocations: 477.9 kB / 1.163 GB, free: 27.56 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.808e-05/1.029, allocations: 16.81 kB / 1.163 GB, free: 27.55 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/1.029, allocations: 19.73 kB / 1.163 GB, free: 27.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/1.029, allocations: 6 kB / 1.163 GB, free: 27.54 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/1.029, allocations: 26.38 kB / 1.163 GB, free: 27.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/1.029, allocations: 20.84 kB / 1.163 GB, free: 27.53 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.391e-05/1.029, allocations: 102.3 kB / 1.163 GB, free: 27.45 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.029, allocations: 0 / 1.163 GB, free: 27.45 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003388/1.029, allocations: 73.19 kB / 1.163 GB, free: 27.43 MB / 1.076 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.0001478/1.029, allocations: 133.3 kB / 1.164 GB, free: 27.34 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005961/1.03, allocations: 477.1 kB / 1.164 GB, free: 27.05 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.03, allocations: 6.594 kB / 1.164 GB, free: 27.04 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/1.03, allocations: 101.8 kB / 1.164 GB, free: 27.02 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/1.03, allocations: 31.77 kB / 1.164 GB, free: 27 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004896/1.031, allocations: 321.3 kB / 1.164 GB, free: 26.8 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.803e-05/1.031, allocations: 108.6 kB / 1.165 GB, free: 26.72 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.574e-05/1.031, allocations: 21.47 kB / 1.165 GB, free: 26.72 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/1.031, allocations: 16.56 kB / 1.165 GB, free: 26.71 MB / 1.076 GB Notification: Performance of SimCode: time 3.2e-07/1.031, allocations: 0 / 1.165 GB, free: 26.71 MB / 1.076 GB Notification: Performance of Templates: time 0.00659/1.038, allocations: 3.849 MB / 1.168 GB, free: 26.26 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.039782923064195]