Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00839/0.00839, allocations: 101 kB / 15.73 MB, free: 6.473 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.001359/0.00136, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.525/2.525, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 66.97 kB / 0.9508 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.356, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002621/0.3587, allocations: 0.8768 MB / 1.089 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002287/0.361, allocations: 1.309 MB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.005e-05/0.3611, allocations: 4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.3613, allocations: 11.81 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.3614, allocations: 35.78 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.3624, allocations: 263.5 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005044/0.3629, allocations: 307.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.3631, allocations: 25.12 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.3634, allocations: 131.6 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.3637, allocations: 123.7 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.3638, allocations: 24 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.3639, allocations: 39.98 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.364, allocations: 47.83 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.3642, allocations: 99.61 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005751/0.3648, allocations: 267.2 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3648, allocations: 0 / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.146e-06/0.3649, allocations: 0 / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.3649, allocations: 4 kB / 1.091 GB, free: 13.96 MB / 0.8575 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.001494/0.3664, allocations: 0.5339 MB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.3664, allocations: 12.03 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.3666, allocations: 20.75 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.367, allocations: 237.5 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.3671, allocations: 16.36 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/0.3672, allocations: 20.38 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005711/0.3678, allocations: 184.2 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3678, allocations: 4.188 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.3678, allocations: 7.938 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3679, allocations: 4 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.3682, allocations: 88.17 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.3692, allocations: 472.7 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003972/0.3696, allocations: 134.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.3699, allocations: 100.8 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.37, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005258/0.3705, allocations: 207.8 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 3.206e-06/0.3705, allocations: 4 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.001412/0.3719, allocations: 451.4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.3721, allocations: 55.41 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3722, allocations: 143.3 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.3723, allocations: 41.7 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3724, allocations: 108.6 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3726, allocations: 71.17 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.3728, allocations: 82 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.373, allocations: 338.8 kB / 1.095 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004701/0.3735, allocations: 144.7 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/0.374, allocations: 213.1 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007716/0.3748, allocations: 354.4 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3748, allocations: 4 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001382/0.3762, allocations: 0.4985 MB / 1.096 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.645e-05/0.3763, allocations: 67.39 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3763, allocations: 0 / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.3764, allocations: 12.11 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.3767, allocations: 51.91 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.3767, allocations: 4 kB / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.3773, allocations: 75.56 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.867e-05/0.3774, allocations: 23.98 kB / 1.096 GB, free: 8.941 MB / 0.8575 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.0002933/0.3777, allocations: 168 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-05/0.3778, allocations: 15.81 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.761e-05/0.3778, allocations: 13.88 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.3778, allocations: 0 / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3779, allocations: 4 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.3779, allocations: 7.922 kB / 1.096 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.3792, allocations: 0.6622 MB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3792, allocations: 4 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.706e-05/0.3793, allocations: 4 kB / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3793, allocations: 0 / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.3793, allocations: 15.97 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.045e-05/0.3794, allocations: 7.938 kB / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3794, allocations: 0 / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.3804, allocations: 456.6 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.697e-05/0.3805, allocations: 92.86 kB / 1.097 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.3806, allocations: 19.98 kB / 1.097 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.3807, allocations: 15.92 kB / 1.097 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.925e-05/0.3808, allocations: 15.92 kB / 1.097 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.562e-05/0.3809, allocations: 23.97 kB / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.014e-05/0.381, allocations: 105.3 kB / 1.098 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.381, allocations: 0 / 1.098 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005573/0.3816, allocations: 63.98 kB / 1.098 GB, free: 7.172 MB / 0.8575 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.0002829/0.3819, allocations: 141.3 kB / 1.098 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001059/0.3829, allocations: 447.6 kB / 1.098 GB, free: 6.562 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.383, allocations: 0 / 1.098 GB, free: 6.562 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.3833, allocations: 115.9 kB / 1.098 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.3838, allocations: 32.22 kB / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000888/0.3848, allocations: 325.4 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.3852, allocations: 0.7167 MB / 1.099 GB, free: 5.328 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.283e-05/0.3853, allocations: 21.55 kB / 1.099 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.806e-05/0.3854, allocations: 23.44 kB / 1.099 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.3854, allocations: 0 / 1.099 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of Templates: time 0.01343/0.3988, allocations: 3.581 MB / 1.103 GB, free: 1.742 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches