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.001509/0.001509, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.474/1.474, allocations: 222.9 MB / 240.2 MB, free: 4.371 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.697/2.697, allocations: 437 MB / 0.7103 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.91 kB / 0.8692 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8599/0.8614, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002438/0.8639, allocations: 0.8703 MB / 1.018 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.8657, allocations: 1.315 MB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.8658, allocations: 4 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.866, allocations: 15.8 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.8661, allocations: 27.72 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.8669, allocations: 265.4 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.8672, allocations: 295.5 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.8674, allocations: 33.09 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.8676, allocations: 135.6 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.8678, allocations: 115.7 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.168e-05/0.8679, allocations: 24 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.868, allocations: 35.97 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.045e-05/0.8681, allocations: 39.91 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.8682, allocations: 111.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.8686, allocations: 261.2 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.8686, allocations: 4 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8686, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.8686, allocations: 0 / 1.021 GB, free: 14.97 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.0009647/0.8696, allocations: 0.5416 MB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.8696, allocations: 12.02 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.975e-05/0.8697, allocations: 20.75 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.87, allocations: 224.1 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.87, allocations: 16.31 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/0.8701, allocations: 20.36 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.8704, allocations: 187.8 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.8705, allocations: 192 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.8705, allocations: 7.922 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.8705, allocations: 8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.8707, allocations: 92.17 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006696/0.8714, allocations: 476.6 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.8717, allocations: 132.2 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.8718, allocations: 100.8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.8719, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.8722, allocations: 214.3 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.8722, allocations: 0 / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0008434/0.8731, allocations: 452.3 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.8731, allocations: 59.41 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.8733, allocations: 141.8 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.815e-05/0.8733, allocations: 49.69 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.926e-05/0.8734, allocations: 100.6 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.8735, allocations: 63.25 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.8737, allocations: 85.98 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.8738, allocations: 338.7 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/0.8741, allocations: 152.7 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.8745, allocations: 209.1 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005224/0.875, allocations: 354.3 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.875, allocations: 0 / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008245/0.8758, allocations: 0.4946 MB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.648e-05/0.8759, allocations: 68.48 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.8759, allocations: 8 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.876, allocations: 4 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.8762, allocations: 52.05 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.8762, allocations: 7.984 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.8766, allocations: 71.62 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.8767, allocations: 23.98 kB / 1.025 GB, free: 9.957 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.0001987/0.8769, allocations: 177.8 kB / 1.025 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.8769, allocations: 15.81 kB / 1.025 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.877, allocations: 9.875 kB / 1.026 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.877, allocations: 4 kB / 1.026 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.877, allocations: 0 / 1.026 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.877, allocations: 7.922 kB / 1.026 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008077/0.8778, allocations: 0.659 MB / 1.026 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.8778, allocations: 4 kB / 1.026 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.8779, allocations: 7.984 kB / 1.026 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.8779, allocations: 4 kB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.8779, allocations: 11.98 kB / 1.026 GB, free: 9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.8779, allocations: 3.938 kB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.8779, allocations: 0 / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.8785, allocations: 459.8 kB / 1.027 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.503e-05/0.8786, allocations: 88.95 kB / 1.027 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.8786, allocations: 19.98 kB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.8788, allocations: 15.92 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.8788, allocations: 15.97 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.8789, allocations: 19.98 kB / 1.027 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.452e-05/0.8789, allocations: 104.6 kB / 1.027 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8789, allocations: 4 kB / 1.027 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003403/0.8793, allocations: 59.98 kB / 1.027 GB, free: 8.191 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.0002152/0.8795, allocations: 137.5 kB / 1.027 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00075/0.8803, allocations: 470.3 kB / 1.028 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8803, allocations: 3.938 kB / 1.028 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.8805, allocations: 125.4 kB / 1.028 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.8809, allocations: 36.22 kB / 1.028 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006128/0.8815, allocations: 309.5 kB / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.8818, allocations: 0.7208 MB / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.666e-05/0.8819, allocations: 25.52 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.8819, allocations: 19.44 kB / 1.029 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.8819, allocations: 0 / 1.029 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of Templates: time 0.007005/0.8889, allocations: 3.554 MB / 1.032 GB, free: 2.75 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=480 -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