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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 104.5 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002296/0.002296, allocations: 188.9 kB / 22.1 MB, free: 5.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.371/3.371, allocations: 495.8 MB / 0.783 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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=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: Performance of FrontEnd - loaded program: time 0.002116/0.002116, allocations: 68.92 kB / 1.137 GB, free: 33.9 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4881/0.4902, allocations: 173.6 MB / 1.307 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002809/0.493, allocations: 0.8737 MB / 1.308 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002373/0.4954, allocations: 1.318 MB / 1.309 GB, free: 15.69 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.509e-05/0.4955, allocations: 3.938 kB / 1.309 GB, free: 15.69 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.4956, allocations: 19.73 kB / 1.309 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.4958, allocations: 31.77 kB / 1.309 GB, free: 15.64 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008504/0.4966, allocations: 270.2 kB / 1.309 GB, free: 15.38 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.497, allocations: 283.4 kB / 1.309 GB, free: 15.1 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.4972, allocations: 21.3 kB / 1.309 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.4974, allocations: 139.7 kB / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.4977, allocations: 131.6 kB / 1.31 GB, free: 14.81 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.803e-05/0.4978, allocations: 24 kB / 1.31 GB, free: 14.79 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.4979, allocations: 31.98 kB / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.162e-05/0.498, allocations: 39.91 kB / 1.31 GB, free: 14.72 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.4981, allocations: 103.6 kB / 1.31 GB, free: 14.62 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.4985, allocations: 271 kB / 1.31 GB, free: 14.35 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4985, allocations: 7.938 kB / 1.31 GB, free: 14.34 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.655e-06/0.4985, allocations: 0 / 1.31 GB, free: 14.34 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.4986, allocations: 0 / 1.31 GB, free: 14.34 MB / 1.014 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.001152/0.4997, allocations: 477.4 kB / 1.311 GB, free: 13.83 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.4998, allocations: 12.03 kB / 1.311 GB, free: 13.82 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.4999, allocations: 24.78 kB / 1.311 GB, free: 13.8 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.5002, allocations: 166.3 kB / 1.311 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.5002, allocations: 16.38 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/0.5003, allocations: 24.36 kB / 1.311 GB, free: 13.57 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004398/0.5007, allocations: 184.1 kB / 1.311 GB, free: 13.38 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.5007, allocations: 192 / 1.311 GB, free: 13.38 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.5008, allocations: 11.92 kB / 1.311 GB, free: 13.37 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.5008, allocations: 4 kB / 1.311 GB, free: 13.37 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.501, allocations: 88.17 kB / 1.311 GB, free: 13.28 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008106/0.5018, allocations: 447.8 kB / 1.312 GB, free: 12.8 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.5021, allocations: 114.5 kB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.5023, allocations: 84.8 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.5023, allocations: 0 / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000393/0.5027, allocations: 215.8 kB / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.5027, allocations: 0 / 1.312 GB, free: 12.37 MB / 1.014 GB Notification: Performance of matching and sorting (n=28): time 0.001004/0.5037, allocations: 465 kB / 1.312 GB, free: 11.91 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.5038, allocations: 59.41 kB / 1.312 GB, free: 11.84 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.5039, allocations: 144.1 kB / 1.313 GB, free: 11.7 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.367e-05/0.504, allocations: 45.69 kB / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.5041, allocations: 100.7 kB / 1.313 GB, free: 11.54 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.5042, allocations: 67.58 kB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.5044, allocations: 89.98 kB / 1.313 GB, free: 11.38 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.5046, allocations: 330.8 kB / 1.313 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.5049, allocations: 152.6 kB / 1.313 GB, free: 10.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.5053, allocations: 209.1 kB / 1.314 GB, free: 10.67 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.5059, allocations: 355.5 kB / 1.314 GB, free: 10.29 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.5059, allocations: 4 kB / 1.314 GB, free: 10.29 MB / 1.014 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009827/0.5069, allocations: 0.5034 MB / 1.314 GB, free: 9.766 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.974e-05/0.507, allocations: 67.41 kB / 1.314 GB, free: 9.688 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.507, allocations: 0 / 1.314 GB, free: 9.688 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.037e-05/0.5071, allocations: 7.984 kB / 1.314 GB, free: 9.68 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.5073, allocations: 47.86 kB / 1.315 GB, free: 9.633 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.5073, allocations: 4 kB / 1.315 GB, free: 9.629 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.5078, allocations: 79.7 kB / 1.315 GB, free: 9.551 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.918e-05/0.5078, allocations: 27.92 kB / 1.315 GB, free: 9.523 MB / 1.014 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.0002364/0.5081, allocations: 165.7 kB / 1.315 GB, free: 9.352 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.354e-05/0.5081, allocations: 19.89 kB / 1.315 GB, free: 9.332 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.5082, allocations: 9.969 kB / 1.315 GB, free: 9.32 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.5082, allocations: 4 kB / 1.315 GB, free: 9.316 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.5082, allocations: 0 / 1.315 GB, free: 9.316 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5082, allocations: 3.938 kB / 1.315 GB, free: 9.312 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.5093, allocations: 0.662 MB / 1.315 GB, free: 8.602 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.5093, allocations: 4 kB / 1.315 GB, free: 8.598 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.469e-05/0.5093, allocations: 4 kB / 1.315 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.5093, allocations: 0 / 1.315 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.5093, allocations: 11.97 kB / 1.315 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.737e-06/0.5094, allocations: 7.938 kB / 1.316 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5094, allocations: 0 / 1.316 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/0.5101, allocations: 463.2 kB / 1.316 GB, free: 8.105 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.204e-05/0.5102, allocations: 16 kB / 1.316 GB, free: 8.09 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.5102, allocations: 19.97 kB / 1.316 GB, free: 8.07 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.5103, allocations: 15.92 kB / 1.316 GB, free: 8.055 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.382e-05/0.5104, allocations: 15.91 kB / 1.316 GB, free: 8.039 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.5105, allocations: 19.98 kB / 1.316 GB, free: 8.02 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001068/0.5106, allocations: 109.7 kB / 1.316 GB, free: 7.914 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.5106, allocations: 0 / 1.316 GB, free: 7.914 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003843/0.5109, allocations: 71.94 kB / 1.316 GB, free: 7.844 MB / 1.014 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.0002645/0.5112, allocations: 130 kB / 1.316 GB, free: 7.707 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0008363/0.512, allocations: 410.8 kB / 1.317 GB, free: 7.281 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5121, allocations: 0 / 1.317 GB, free: 7.281 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.5123, allocations: 107.9 kB / 1.317 GB, free: 7.176 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.5127, allocations: 36.16 kB / 1.317 GB, free: 7.141 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007657/0.5134, allocations: 319.8 kB / 1.317 GB, free: 6.805 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.5138, allocations: 0.7206 MB / 1.318 GB, free: 6.059 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.273e-05/0.5139, allocations: 25.62 kB / 1.318 GB, free: 6.031 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.742e-05/0.514, allocations: 19.44 kB / 1.318 GB, free: 6.016 MB / 1.014 GB Notification: Performance of SimCode: time 7.91e-07/0.514, allocations: 3.938 kB / 1.318 GB, free: 6.012 MB / 1.014 GB Notification: Performance of Templates: time 0.009861/0.5238, allocations: 3.709 MB / 1.322 GB, free: 2.332 MB / 1.014 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 -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/jenkins/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: 10.102214499376714]