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.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.001622/0.001622, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001858/0.001858, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.485/1.485, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.329/3.329, allocations: 394.2 MB / 0.6387 GB, free: 11.95 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002168/0.002168, allocations: 59.91 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.025/1.027, allocations: 181.8 MB / 1.187 GB, free: 16.18 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002329/1.029, allocations: 0.8419 MB / 1.187 GB, free: 15.65 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002151/1.031, allocations: 1.33 MB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.673e-05/1.031, allocations: 1.406 kB / 1.189 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001152/1.032, allocations: 19.2 kB / 1.189 GB, free: 14.68 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001556/1.032, allocations: 33.23 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007745/1.033, allocations: 269 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004013/1.033, allocations: 289.4 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/1.033, allocations: 28.52 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/1.033, allocations: 134.4 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/1.034, allocations: 119.1 kB / 1.19 GB, free: 14.29 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.626e-05/1.034, allocations: 23.28 kB / 1.19 GB, free: 14.29 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/1.034, allocations: 43.64 kB / 1.19 GB, free: 14.29 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/1.034, allocations: 45.2 kB / 1.19 GB, free: 14.26 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001342/1.034, allocations: 91.7 kB / 1.19 GB, free: 14.21 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003781/1.034, allocations: 266.9 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.034, allocations: 0 / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.763e-06/1.034, allocations: 5.219 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.783e-06/1.034, allocations: 0 / 1.19 GB, free: 14.12 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.0009192/1.035, allocations: 473.8 kB / 1.19 GB, free: 13.73 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/1.035, allocations: 8.875 kB / 1.19 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/1.036, allocations: 32.2 kB / 1.191 GB, free: 13.72 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/1.036, allocations: 177.5 kB / 1.191 GB, free: 13.56 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/1.036, allocations: 14.77 kB / 1.191 GB, free: 13.56 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/1.036, allocations: 20.75 kB / 1.191 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/1.036, allocations: 180.8 kB / 1.191 GB, free: 13.48 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/1.036, allocations: 8.781 kB / 1.191 GB, free: 13.48 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/1.036, allocations: 11.95 kB / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/1.036, allocations: 2.797 kB / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002144/1.037, allocations: 97.33 kB / 1.191 GB, free: 13.44 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/1.037, allocations: 346.7 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/1.037, allocations: 127.5 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/1.038, allocations: 75.05 kB / 1.192 GB, free: 13.09 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/1.038, allocations: 1.594 kB / 1.192 GB, free: 13.09 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/1.038, allocations: 214.5 kB / 1.192 GB, free: 13 MB / 1.076 GB Notification: Performance of pre-optimization done (n=28): time 1.823e-06/1.038, allocations: 0 / 1.192 GB, free: 13 MB / 1.076 GB Notification: Performance of matching and sorting (n=28): time 0.0009101/1.039, allocations: 463.9 kB / 1.192 GB, free: 12.84 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/1.039, allocations: 55.91 kB / 1.192 GB, free: 12.78 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/1.039, allocations: 144.5 kB / 1.192 GB, free: 12.66 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/1.039, allocations: 44.3 kB / 1.192 GB, free: 12.62 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/1.039, allocations: 105.7 kB / 1.193 GB, free: 12.53 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/1.039, allocations: 71.31 kB / 1.193 GB, free: 12.48 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/1.039, allocations: 94.72 kB / 1.193 GB, free: 12.43 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.521e-05/1.039, allocations: 335.2 kB / 1.193 GB, free: 12.1 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/1.04, allocations: 204.1 kB / 1.193 GB, free: 11.99 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/1.04, allocations: 268.7 kB / 1.193 GB, free: 11.82 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/1.041, allocations: 361.9 kB / 1.194 GB, free: 11.59 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/1.041, allocations: 1.375 kB / 1.194 GB, free: 11.59 MB / 1.076 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009192/1.042, allocations: 0.5644 MB / 1.194 GB, free: 11.27 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.027e-05/1.042, allocations: 68.81 kB / 1.194 GB, free: 11.21 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/1.042, allocations: 1.719 kB / 1.194 GB, free: 11.21 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/1.042, allocations: 3.438 kB / 1.194 GB, free: 11.21 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/1.042, allocations: 49.12 kB / 1.194 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/1.042, allocations: 7.891 kB / 1.194 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/1.042, allocations: 74.2 kB / 1.195 GB, free: 11.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/1.042, allocations: 26.47 kB / 1.195 GB, free: 11.17 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.0001477/1.042, allocations: 166.5 kB / 1.195 GB, free: 11.04 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/1.042, allocations: 17.31 kB / 1.195 GB, free: 11.03 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/1.043, allocations: 17.92 kB / 1.195 GB, free: 11.01 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.043, allocations: 2.969 kB / 1.195 GB, free: 11.01 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/1.043, allocations: 4 kB / 1.195 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/1.043, allocations: 2.656 kB / 1.195 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007251/1.043, allocations: 0.5926 MB / 1.195 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.043, allocations: 0.5625 kB / 1.195 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.281e-05/1.043, allocations: 10.06 kB / 1.195 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/1.043, allocations: 1.344 kB / 1.195 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/1.043, allocations: 14.06 kB / 1.195 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.043, allocations: 1.188 kB / 1.195 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.043, allocations: 0 / 1.195 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005992/1.044, allocations: 473 kB / 1.196 GB, free: 10.41 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.152e-05/1.044, allocations: 13.92 kB / 1.196 GB, free: 10.4 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/1.044, allocations: 15.72 kB / 1.196 GB, free: 10.4 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/1.044, allocations: 11.61 kB / 1.196 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/1.044, allocations: 21.23 kB / 1.196 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/1.044, allocations: 18.78 kB / 1.196 GB, free: 10.39 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.398e-05/1.044, allocations: 105.4 kB / 1.196 GB, free: 10.3 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.044, allocations: 3.938 kB / 1.196 GB, free: 10.3 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003601/1.045, allocations: 68.72 kB / 1.196 GB, free: 10.29 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.0001712/1.045, allocations: 139.2 kB / 1.196 GB, free: 10.18 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000716/1.046, allocations: 479.5 kB / 1.197 GB, free: 9.895 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/1.046, allocations: 0 / 1.197 GB, free: 9.895 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/1.046, allocations: 107.4 kB / 1.197 GB, free: 9.863 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/1.046, allocations: 34.92 kB / 1.197 GB, free: 9.852 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005837/1.047, allocations: 323.2 kB / 1.197 GB, free: 9.645 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.56e-05/1.047, allocations: 104.2 kB / 1.197 GB, free: 9.57 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.648e-05/1.047, allocations: 22.34 kB / 1.197 GB, free: 9.566 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.045e-05/1.047, allocations: 23.98 kB / 1.197 GB, free: 9.555 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/1.047, allocations: 0 / 1.197 GB, free: 9.555 MB / 1.076 GB Notification: Performance of Templates: time 0.008469/1.055, allocations: 3.843 MB / 1.201 GB, free: 9.094 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile [Timeout 300] (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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.584011481958441]