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.001783/0.001782, allocations: 110.3 kB / 15.99 MB, free: 6.355 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.001996/0.001996, allocations: 194 kB / 16.91 MB, free: 6.191 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.6 MB, free: 15.43 MB / 206.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.617/2.617, allocations: 437.1 MB / 0.7107 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 75.47 kB / 0.8694 GB, free: 2.566 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3354, allocations: 151.6 MB / 1.017 GB, free: 11.01 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002497/0.3379, allocations: 0.931 MB / 1.018 GB, free: 10.08 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0021/0.3401, allocations: 1.304 MB / 1.02 GB, free: 8.758 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.267e-05/0.3401, allocations: 0 / 1.02 GB, free: 8.758 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.3403, allocations: 15.86 kB / 1.02 GB, free: 8.742 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.3405, allocations: 27.84 kB / 1.02 GB, free: 8.715 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007822/0.3413, allocations: 242.4 kB / 1.02 GB, free: 8.484 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.3416, allocations: 303.3 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.3418, allocations: 33.09 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.342, allocations: 131.7 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.3422, allocations: 115.7 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.3423, allocations: 24 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.249e-05/0.3424, allocations: 31.98 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.606e-05/0.3425, allocations: 47.83 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.3426, allocations: 111.6 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.3429, allocations: 183.8 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3429, allocations: 4 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3429, allocations: 0 / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.321e-06/0.3429, allocations: 4 kB / 1.021 GB, free: 7.512 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.00103/0.3439, allocations: 0.5338 MB / 1.021 GB, free: 6.91 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.344, allocations: 12.92 kB / 1.021 GB, free: 6.898 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.566e-05/0.3441, allocations: 24.73 kB / 1.021 GB, free: 6.875 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.3444, allocations: 232 kB / 1.022 GB, free: 6.609 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.3444, allocations: 8.375 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.3445, allocations: 24.36 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.3449, allocations: 186.6 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3449, allocations: 4.188 kB / 1.022 GB, free: 6.387 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.345, allocations: 11.92 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.345, allocations: 4 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.3452, allocations: 88.11 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006941/0.3459, allocations: 468.8 kB / 1.022 GB, free: 5.777 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3462, allocations: 142.5 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.3464, allocations: 88.81 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.3464, allocations: 4 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.3468, allocations: 204.7 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of pre-optimization done (n=28): time 1.794e-06/0.3468, allocations: 8 kB / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of matching and sorting (n=28): time 0.0009142/0.3478, allocations: 460.1 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.3478, allocations: 55.41 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.348, allocations: 144.3 kB / 1.023 GB, free: 4.648 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.36e-05/0.348, allocations: 41.69 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.847e-05/0.3481, allocations: 100.6 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.564e-05/0.3482, allocations: 71.17 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.3484, allocations: 89.98 kB / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3486, allocations: 334.8 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.3489, allocations: 148.7 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.3493, allocations: 201.2 kB / 1.024 GB, free: 3.641 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000576/0.3499, allocations: 370.8 kB / 1.025 GB, free: 3.246 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3499, allocations: 0 / 1.025 GB, free: 3.246 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008879/0.3508, allocations: 499 kB / 1.025 GB, free: 2.742 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/0.3508, allocations: 71.52 kB / 1.025 GB, free: 2.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.3509, allocations: 0 / 1.025 GB, free: 2.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3509, allocations: 4 kB / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.3511, allocations: 51.91 kB / 1.025 GB, free: 2.605 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.3512, allocations: 4 kB / 1.025 GB, free: 2.602 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.3516, allocations: 83.55 kB / 1.025 GB, free: 2.52 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.3516, allocations: 23.98 kB / 1.025 GB, free: 2.496 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.0002125/0.3519, allocations: 170.9 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.3519, allocations: 15.81 kB / 1.026 GB, free: 2.305 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.352, allocations: 17.81 kB / 1.026 GB, free: 2.293 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.352, allocations: 0 / 1.026 GB, free: 2.293 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.352, allocations: 4 kB / 1.026 GB, free: 2.289 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.352, allocations: 7.922 kB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000961/0.353, allocations: 0.6622 MB / 1.026 GB, free: 1.562 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.353, allocations: 0 / 1.026 GB, free: 1.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.058e-05/0.353, allocations: 11.94 kB / 1.026 GB, free: 1.551 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.353, allocations: 0 / 1.026 GB, free: 1.551 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/0.3531, allocations: 11.97 kB / 1.026 GB, free: 1.539 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/0.3531, allocations: 11.92 kB / 1.026 GB, free: 1.527 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3531, allocations: 0 / 1.026 GB, free: 1.527 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006937/0.3538, allocations: 451.2 kB / 1.027 GB, free: 1.07 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.3539, allocations: 92.92 kB / 1.027 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.3539, allocations: 19.98 kB / 1.027 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.3541, allocations: 15.86 kB / 1.027 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.3541, allocations: 15.98 kB / 1.027 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.3542, allocations: 23.97 kB / 1.027 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.723e-05/0.3543, allocations: 99.27 kB / 1.027 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3543, allocations: 0 / 1.027 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003565/0.3546, allocations: 71.98 kB / 1.027 GB, free: 0.7188 MB / 0.795 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.0002414/0.3549, allocations: 129.9 kB / 1.027 GB, free: 0.582 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008336/0.3557, allocations: 481.1 kB / 1.028 GB, free: 92 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3557, allocations: 3.938 kB / 1.028 GB, free: 88 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.356, allocations: 120.2 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.3564, allocations: 30.58 kB / 1.028 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007191/0.3571, allocations: 383.1 kB / 1.028 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.3574, allocations: 0.7167 MB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.455e-05/0.3575, allocations: 23.42 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.3575, allocations: 4 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of Templates: time 0.005773/0.3633, allocations: 3.039 MB / 1.032 GB, free: 11.74 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=400 -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) "" 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