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.001226/0.001226, allocations: 109.3 kB / 16.41 MB, free: 6.445 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.001286/0.001287, allocations: 183 kB / 17.34 MB, free: 5.742 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.258/2.258, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 67.89 kB / 0.9515 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8794/0.8809, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002213/0.8832, allocations: 0.8812 MB / 1.089 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001663/0.8848, allocations: 1.302 MB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.498e-05/0.8849, allocations: 6.094 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.8851, allocations: 9.938 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.8852, allocations: 33.58 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007542/0.886, allocations: 268.7 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.8864, allocations: 304.5 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.8865, allocations: 24.48 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.8867, allocations: 135.5 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.887, allocations: 126.7 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.8871, allocations: 22.56 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.8872, allocations: 41.95 kB / 1.092 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.499e-05/0.8873, allocations: 40.55 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.8874, allocations: 111 kB / 1.092 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.8879, allocations: 260.3 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.8879, allocations: 0 / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8879, allocations: 0.7188 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.8879, allocations: 4 kB / 1.092 GB, free: 3.391 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.000961/0.8889, allocations: 0.5358 MB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.8889, allocations: 8.688 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.288e-05/0.889, allocations: 23.25 kB / 1.093 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.8893, allocations: 231.6 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.8893, allocations: 10.94 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.8894, allocations: 21.72 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004186/0.8898, allocations: 179.7 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.8898, allocations: 4.875 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.8899, allocations: 11.98 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.8899, allocations: 2.094 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.8901, allocations: 90.81 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006654/0.8908, allocations: 477.3 kB / 1.094 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.8911, allocations: 137.6 kB / 1.094 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.8913, allocations: 94.16 kB / 1.094 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.8913, allocations: 6.875 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000382/0.8917, allocations: 214.2 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.8917, allocations: 0.8125 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.001142/0.8928, allocations: 452.8 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.8929, allocations: 60.66 kB / 1.095 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.8931, allocations: 143.7 kB / 1.095 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.8932, allocations: 39.38 kB / 1.095 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.8932, allocations: 107.2 kB / 1.095 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.871e-05/0.8933, allocations: 66.19 kB / 1.095 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.8935, allocations: 87.38 kB / 1.095 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.8937, allocations: 334.1 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.894, allocations: 150.8 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.8945, allocations: 211.6 kB / 1.096 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006753/0.8952, allocations: 360.4 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.8952, allocations: 0.75 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001089/0.8963, allocations: 0.4916 MB / 1.096 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.8964, allocations: 68.44 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.8964, allocations: 1.719 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.8964, allocations: 11.38 kB / 1.097 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.8967, allocations: 52.61 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.8967, allocations: 4.141 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/0.8972, allocations: 74.31 kB / 1.097 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-05/0.8972, allocations: 22.94 kB / 1.097 GB, free: 408 kB / 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.0001981/0.8974, allocations: 173.8 kB / 1.097 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.8975, allocations: 17.36 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.8975, allocations: 13.34 kB / 1.097 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.8975, allocations: 3.281 kB / 1.097 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.8976, allocations: 0 / 1.097 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.8976, allocations: 5.203 kB / 1.097 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.8986, allocations: 0.6533 MB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.8986, allocations: 3.938 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.054e-05/0.8987, allocations: 21.94 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.8987, allocations: 1.5 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.8987, allocations: 10.53 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.8988, allocations: 5.031 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.8988, allocations: 0 / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000722/0.8995, allocations: 463.2 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.994e-05/0.8996, allocations: 93.91 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.8996, allocations: 23.53 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.8998, allocations: 10.59 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.325e-05/0.8998, allocations: 17.62 kB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.8999, allocations: 17.56 kB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.545e-05/0.9, allocations: 102.9 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9, allocations: 0 / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003911/0.9004, allocations: 65.95 kB / 1.098 GB, free: 15.35 MB / 0.8731 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.0002527/0.9006, allocations: 133.8 kB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009441/0.9016, allocations: 454.8 kB / 1.099 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.9016, allocations: 0 / 1.099 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.9019, allocations: 119.5 kB / 1.099 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.9023, allocations: 38.69 kB / 1.099 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007952/0.9031, allocations: 341.5 kB / 1.099 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.9034, allocations: 0.7172 MB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.086e-05/0.9035, allocations: 20.22 kB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of SimCode: time 1.814e-06/0.9035, allocations: 0 / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of Templates: time 0.00732/0.9108, allocations: 3.069 MB / 1.103 GB, free: 13.75 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,triMovMea.u,triMovMea.y,triMovMea1.y,booPul.y,triMovMea2.y,booPul1.y Variables in the result:booPul.y,booPul1.y,time,triMovMea.u,triMovMea.y,triMovMea1.y,triMovMea2.y