Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001144/0.001144, allocations: 196.2 kB / 16.14 MB, free: 6.711 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.632/2.632, allocations: 437 MB / 0.7099 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 0.8685 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7453/0.7466, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002511/0.7492, allocations: 0.9256 MB / 1.018 GB, free: 1.867 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001914/0.7511, allocations: 1.339 MB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.186e-05/0.7512, allocations: 3.938 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.7514, allocations: 7.922 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.7515, allocations: 23.78 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.7522, allocations: 250.8 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.7525, allocations: 255.5 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.7526, allocations: 37 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.7528, allocations: 115.6 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.753, allocations: 107.7 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.7531, allocations: 12 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.693e-05/0.7532, allocations: 27.98 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.671e-05/0.7533, allocations: 47.81 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.7534, allocations: 99.59 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.7537, allocations: 249.3 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.7537, allocations: 3.938 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7538, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.7538, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 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.0009273/0.7547, allocations: 0.5378 MB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.7547, allocations: 8.031 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.924e-05/0.7548, allocations: 24.75 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.7551, allocations: 232.1 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.7552, allocations: 12.36 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.7552, allocations: 24.31 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.7556, allocations: 187.8 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.7556, allocations: 192 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.7557, allocations: 7.938 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.7557, allocations: 7.938 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.7559, allocations: 88.17 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006879/0.7566, allocations: 476.7 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.7569, allocations: 134.5 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.757, allocations: 92.81 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.7571, allocations: 3.984 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003625/0.7574, allocations: 217.8 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.7575, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0008882/0.7583, allocations: 448.3 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.7584, allocations: 59.39 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.7585, allocations: 144.3 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.82e-05/0.7586, allocations: 41.69 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.7587, allocations: 104.6 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.7588, allocations: 71.17 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.7589, allocations: 86 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.7591, allocations: 334.8 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.7594, allocations: 144.7 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.7597, allocations: 213.1 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000548/0.7603, allocations: 362.3 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.7603, allocations: 0 / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008521/0.7612, allocations: 0.4946 MB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/0.7612, allocations: 67.39 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.7613, allocations: 4 kB / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.7613, allocations: 4 kB / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.7615, allocations: 51.91 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.7616, allocations: 4 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.762, allocations: 79.73 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.179e-05/0.762, allocations: 23.98 kB / 1.025 GB, free: 10.28 MB / 0.7794 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.0002138/0.7623, allocations: 162.3 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.7623, allocations: 31.73 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.7624, allocations: 9.875 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.7624, allocations: 4 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.7624, allocations: 0 / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.7624, allocations: 7.875 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008864/0.7633, allocations: 0.6636 MB / 1.025 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7633, allocations: 0 / 1.025 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.7634, allocations: 4 kB / 1.025 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.7634, allocations: 8 kB / 1.025 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.7634, allocations: 11.97 kB / 1.025 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.7634, allocations: 3.938 kB / 1.025 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7634, allocations: 0 / 1.025 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007711/0.7642, allocations: 459.1 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.7642, allocations: 92.86 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.671e-05/0.7643, allocations: 19.98 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.7644, allocations: 11.92 kB / 1.026 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.7645, allocations: 19.98 kB / 1.026 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.7646, allocations: 19.97 kB / 1.026 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.966e-05/0.7646, allocations: 104.6 kB / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7646, allocations: 0 / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003425/0.765, allocations: 64 kB / 1.026 GB, free: 8.512 MB / 0.7794 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.0002987/0.7653, allocations: 135.9 kB / 1.026 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007308/0.766, allocations: 458.5 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.766, allocations: 0 / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.7663, allocations: 121.5 kB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.7666, allocations: 27.97 kB / 1.027 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006359/0.7673, allocations: 341.7 kB / 1.027 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.7676, allocations: 0.7245 MB / 1.028 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.923e-05/0.7677, allocations: 17.55 kB / 1.028 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.7677, allocations: 15.44 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of SimCode: time 5.71e-07/0.7677, allocations: 0 / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of Templates: time 0.007266/0.775, allocations: 3.421 MB / 1.031 GB, free: 3.215 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches