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.001448/0.001448, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001535/0.001535, allocations: 195.8 kB / 16.26 MB, free: 6.625 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.57/1.57, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.823/2.823, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002645/0.002644, allocations: 67.89 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7198/0.7225, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002299/0.7248, allocations: 0.9294 MB / 1.018 GB, free: 1.848 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.7267, allocations: 1.311 MB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.777e-05/0.7268, allocations: 0 / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.7269, allocations: 11.88 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.7271, allocations: 23.84 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007742/0.7279, allocations: 252.4 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000387/0.7283, allocations: 303.3 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.7284, allocations: 29.09 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/0.7286, allocations: 123.7 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.7289, allocations: 123.7 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.459e-05/0.7289, allocations: 24 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.822e-05/0.729, allocations: 35.98 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.947e-05/0.7291, allocations: 43.83 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.7293, allocations: 107.6 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.7296, allocations: 257.3 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7296, allocations: 0 / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7297, allocations: 4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.7297, allocations: 0 / 1.02 GB, free: 15.21 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.001026/0.7307, allocations: 0.5416 MB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.7307, allocations: 8.031 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.835e-05/0.7308, allocations: 28.73 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.7311, allocations: 228.1 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.7312, allocations: 8.375 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/0.7312, allocations: 24.36 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.7316, allocations: 181.8 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.7316, allocations: 192 / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.7317, allocations: 23.91 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.7317, allocations: 4 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002129/0.7319, allocations: 88.11 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.7326, allocations: 476.7 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.7329, allocations: 138.5 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.7331, allocations: 93.56 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.7331, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.7335, allocations: 204 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.7335, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0009166/0.7344, allocations: 464.2 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.7345, allocations: 55.41 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.7346, allocations: 144.3 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.98e-05/0.7347, allocations: 41.69 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.7349, allocations: 104.6 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.344e-05/0.735, allocations: 67.19 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.7352, allocations: 89.98 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.7354, allocations: 330.8 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.7357, allocations: 152.7 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.7361, allocations: 205.2 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.7366, allocations: 370.2 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.7367, allocations: 4 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008888/0.7376, allocations: 494.5 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.7376, allocations: 71.39 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.7377, allocations: 0 / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.7377, allocations: 8.125 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.7379, allocations: 51.92 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.738, allocations: 3.984 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.7384, allocations: 75.62 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/0.7385, allocations: 23.98 kB / 1.025 GB, free: 10.19 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.0002155/0.7387, allocations: 169.6 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.7387, allocations: 15.81 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.7388, allocations: 13.88 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.7388, allocations: 4.078 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7388, allocations: 0 / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.7388, allocations: 11.92 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009088/0.7397, allocations: 0.6636 MB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.7397, allocations: 0 / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.867e-05/0.7398, allocations: 11.92 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.7398, allocations: 0 / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.7398, allocations: 7.984 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.7398, allocations: 7.938 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7398, allocations: 0 / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.7406, allocations: 451.2 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.708e-05/0.7406, allocations: 92.95 kB / 1.026 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.111e-05/0.7407, allocations: 19.98 kB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.7408, allocations: 15.92 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.7409, allocations: 19.97 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.741, allocations: 15.98 kB / 1.026 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.593e-05/0.7411, allocations: 108.6 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7411, allocations: 0 / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003709/0.7414, allocations: 67.98 kB / 1.027 GB, free: 8.422 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.0002941/0.7417, allocations: 130 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009071/0.7427, allocations: 478.3 kB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.7427, allocations: 4 kB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.7429, allocations: 117.5 kB / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.7434, allocations: 44.08 kB / 1.027 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007505/0.7441, allocations: 337.5 kB / 1.028 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.7446, allocations: 0.7167 MB / 1.028 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.792e-05/0.7447, allocations: 25.55 kB / 1.028 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.7447, allocations: 23.42 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.7447, allocations: 0 / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of Templates: time 0.008618/0.7534, allocations: 3.589 MB / 1.032 GB, free: 2.922 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=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/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