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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001589/0.001589, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001476/0.001476, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.481/2.481, allocations: 437.1 MB / 0.7112 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 56.28 kB / 0.8707 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3289, allocations: 151.6 MB / 1.019 GB, free: 9.766 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002112/0.3311, allocations: 0.8706 MB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3328, allocations: 1.305 MB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/0.3328, allocations: 4 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.3329, allocations: 15.81 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.3331, allocations: 31.77 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006804/0.3338, allocations: 266 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.3341, allocations: 295.4 kB / 1.021 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.3342, allocations: 37.03 kB / 1.022 GB, free: 6.934 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.3344, allocations: 139.6 kB / 1.022 GB, free: 6.797 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.3347, allocations: 123.6 kB / 1.022 GB, free: 6.676 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.3347, allocations: 24 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.883e-05/0.3348, allocations: 35.98 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.928e-05/0.3349, allocations: 39.84 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.335, allocations: 111.6 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.3354, allocations: 263.2 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3354, allocations: 0 / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of FrontEnd: time 4.308e-06/0.3354, allocations: 4 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3354, allocations: 0 / 1.022 GB, free: 6.207 MB / 0.795 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.0008722/0.3363, allocations: 0.5339 MB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3363, allocations: 12.91 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.3364, allocations: 24.75 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.3367, allocations: 236 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.3367, allocations: 12.38 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.3367, allocations: 28.36 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.3371, allocations: 179.6 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3371, allocations: 192 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.3371, allocations: 15.92 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3372, allocations: 0 / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.3374, allocations: 88.17 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006158/0.338, allocations: 472.7 kB / 1.024 GB, free: 4.473 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.3382, allocations: 138.5 kB / 1.024 GB, free: 4.328 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3384, allocations: 88.81 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.3384, allocations: 4 kB / 1.024 GB, free: 4.234 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003353/0.3388, allocations: 218.8 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of pre-optimization done (n=28): time 2.034e-06/0.3388, allocations: 0 / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of matching and sorting (n=28): time 0.0008124/0.3396, allocations: 458.5 kB / 1.025 GB, free: 3.559 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.3397, allocations: 55.41 kB / 1.025 GB, free: 3.492 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.3398, allocations: 148.3 kB / 1.025 GB, free: 3.34 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.3398, allocations: 37.7 kB / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.329e-05/0.3399, allocations: 100.6 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.34, allocations: 71.19 kB / 1.025 GB, free: 3.125 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.3401, allocations: 93.98 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3402, allocations: 330.8 kB / 1.025 GB, free: 2.691 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.3405, allocations: 152.6 kB / 1.026 GB, free: 2.543 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.3408, allocations: 205.2 kB / 1.026 GB, free: 2.324 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.3413, allocations: 362.8 kB / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3413, allocations: 0 / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008136/0.3422, allocations: 0.4985 MB / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/0.3422, allocations: 71.39 kB / 1.027 GB, free: 1.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3422, allocations: 0 / 1.027 GB, free: 1.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3423, allocations: 4 kB / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3425, allocations: 43.92 kB / 1.027 GB, free: 1.293 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3425, allocations: 11.97 kB / 1.027 GB, free: 1.281 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.3429, allocations: 83.62 kB / 1.027 GB, free: 1.199 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.3429, allocations: 23.98 kB / 1.027 GB, free: 1.176 MB / 0.795 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.0001635/0.3431, allocations: 165.8 kB / 1.027 GB, free: 1.004 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.3431, allocations: 19.8 kB / 1.027 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.3432, allocations: 9.875 kB / 1.027 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3432, allocations: 4 kB / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3432, allocations: 0 / 1.027 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3432, allocations: 3.938 kB / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007458/0.344, allocations: 0.6661 MB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.344, allocations: 4 kB / 1.028 GB, free: 252 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.334e-05/0.344, allocations: 4 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.344, allocations: 0 / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.3441, allocations: 15.97 kB / 1.028 GB, free: 232 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3441, allocations: 3.938 kB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3441, allocations: 0 / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005936/0.3447, allocations: 463.8 kB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.3447, allocations: 92.86 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.3448, allocations: 19.98 kB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.3449, allocations: 11.92 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.345, allocations: 15.98 kB / 1.028 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.345, allocations: 19.97 kB / 1.028 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.696e-05/0.3451, allocations: 106.2 kB / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3451, allocations: 0 / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003307/0.3454, allocations: 64 kB / 1.028 GB, free: 15.41 MB / 0.8106 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.0001802/0.3456, allocations: 137.4 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006814/0.3463, allocations: 451.4 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3463, allocations: 0 / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.3465, allocations: 120.2 kB / 1.029 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.3469, allocations: 39.84 kB / 1.029 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005577/0.3474, allocations: 313.4 kB / 1.029 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.3477, allocations: 0.7245 MB / 1.03 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.02e-05/0.3478, allocations: 17.55 kB / 1.03 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.3478, allocations: 15.44 kB / 1.03 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3478, allocations: 4 kB / 1.03 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of Templates: time 0.006688/0.3545, allocations: 3.558 MB / 1.034 GB, free: 10.01 MB / 0.8106 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 -s gbode -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/jenkins1/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