Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.803/1.803, allocations: 297.4 MB / 312.6 MB, free: 2.938 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 188.7 kB / 382.3 MB, free: 14.83 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.661/1.661, allocations: 225.7 MB / 0.6617 GB, free: 7.234 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008689/0.0008688, allocations: 92.72 kB / 0.7789 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 13.41 kB / 0.9059 GB, free: 4.902 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7225/0.7228, allocations: 119.2 MB / 1.022 GB, free: 57.7 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001127/0.724, allocations: 0.571 MB / 1.023 GB, free: 57.46 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001837/0.7259, allocations: 1.535 MB / 1.024 GB, free: 56.51 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.973e-05/0.726, allocations: 5.219 kB / 1.024 GB, free: 56.5 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 9.976e-05/0.7261, allocations: 12.73 kB / 1.024 GB, free: 56.5 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.7262, allocations: 29.19 kB / 1.024 GB, free: 56.48 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.000714/0.727, allocations: 243.2 kB / 1.025 GB, free: 56.41 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.7272, allocations: 263 kB / 1.025 GB, free: 56.31 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.7274, allocations: 27.09 kB / 1.025 GB, free: 56.3 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.7275, allocations: 110 kB / 1.025 GB, free: 56.27 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.7278, allocations: 110.3 kB / 1.025 GB, free: 56.22 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 4.217e-05/0.7278, allocations: 13.44 kB / 1.025 GB, free: 56.22 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.318e-05/0.7279, allocations: 28.73 kB / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 7.87e-05/0.728, allocations: 30.22 kB / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.7282, allocations: 125.3 kB / 1.025 GB, free: 56.12 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.7285, allocations: 238 kB / 1.026 GB, free: 56.07 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.7285, allocations: 0.6562 kB / 1.026 GB, free: 56.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.724e-06/0.7285, allocations: 2.344 kB / 1.026 GB, free: 56.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.7286, allocations: 1.594 kB / 1.026 GB, free: 56.07 MB / 0.698 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.0008099/0.7294, allocations: 0.4908 MB / 1.026 GB, free: 55.59 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.7294, allocations: 11.69 kB / 1.026 GB, free: 55.59 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.7295, allocations: 20.34 kB / 1.026 GB, free: 55.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.7297, allocations: 241.8 kB / 1.026 GB, free: 55.35 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.7298, allocations: 13.28 kB / 1.026 GB, free: 55.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.7298, allocations: 18.47 kB / 1.026 GB, free: 55.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.7302, allocations: 188.4 kB / 1.026 GB, free: 55.27 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.7302, allocations: 192 / 1.026 GB, free: 55.27 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.7303, allocations: 8.938 kB / 1.026 GB, free: 55.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.7303, allocations: 2.469 kB / 1.026 GB, free: 55.27 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.7305, allocations: 94.67 kB / 1.027 GB, free: 55.24 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.7311, allocations: 482 kB / 1.027 GB, free: 54.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.7313, allocations: 132.1 kB / 1.027 GB, free: 54.83 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.7315, allocations: 99.7 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.7315, allocations: 3.531 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00034/0.7319, allocations: 213.2 kB / 1.027 GB, free: 54.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=28): time 1.533e-06/0.7319, allocations: 0 / 1.027 GB, free: 54.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.000897/0.7328, allocations: 450.9 kB / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.7329, allocations: 61.12 kB / 1.028 GB, free: 54.49 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.733, allocations: 137.3 kB / 1.028 GB, free: 54.38 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.733, allocations: 42.19 kB / 1.028 GB, free: 54.34 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.098e-05/0.7331, allocations: 102.7 kB / 1.028 GB, free: 54.25 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.051e-05/0.7332, allocations: 68.31 kB / 1.028 GB, free: 54.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.7332, allocations: 18.31 kB / 1.028 GB, free: 54.19 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.216e-05/0.7333, allocations: 333.4 kB / 1.029 GB, free: 53.86 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.7336, allocations: 148.2 kB / 1.029 GB, free: 53.81 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/0.734, allocations: 208 kB / 1.029 GB, free: 53.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.7344, allocations: 362.7 kB / 1.029 GB, free: 53.48 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.7345, allocations: 0 / 1.029 GB, free: 53.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008435/0.7353, allocations: 0.5067 MB / 1.03 GB, free: 53.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.435e-05/0.7354, allocations: 68.75 kB / 1.03 GB, free: 53.17 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.7354, allocations: 2.188 kB / 1.03 GB, free: 53.17 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.7354, allocations: 3.438 kB / 1.03 GB, free: 53.17 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.7356, allocations: 49.23 kB / 1.03 GB, free: 53.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.7357, allocations: 3.594 kB / 1.03 GB, free: 53.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.7361, allocations: 107.2 kB / 1.03 GB, free: 53.13 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.7361, allocations: 21.19 kB / 1.03 GB, free: 53.13 MB / 0.698 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * 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.0001513/0.7363, allocations: 172.8 kB / 1.03 GB, free: 52.99 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.7363, allocations: 19.45 kB / 1.03 GB, free: 52.98 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.7363, allocations: 11.53 kB / 1.03 GB, free: 52.97 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.7363, allocations: 3.156 kB / 1.03 GB, free: 52.97 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7364, allocations: 0 / 1.03 GB, free: 52.97 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.7364, allocations: 8.391 kB / 1.03 GB, free: 52.96 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.7371, allocations: 0.667 MB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.7371, allocations: 5.641 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.738e-05/0.7372, allocations: 5.047 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7372, allocations: 2.312 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.7372, allocations: 14.89 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.7372, allocations: 3.938 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7372, allocations: 0.9375 kB / 1.031 GB, free: 52.54 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.7378, allocations: 457.8 kB / 1.031 GB, free: 52.31 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.7378, allocations: 95 kB / 1.031 GB, free: 52.21 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.7379, allocations: 17.2 kB / 1.031 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.738, allocations: 15.11 kB / 1.031 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/0.7381, allocations: 12.78 kB / 1.032 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.7381, allocations: 21.75 kB / 1.032 GB, free: 52.19 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.249e-05/0.7382, allocations: 109.7 kB / 1.032 GB, free: 52.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7382, allocations: 4 kB / 1.032 GB, free: 52.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003368/0.7386, allocations: 63.03 kB / 1.032 GB, free: 52.09 MB / 0.698 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.0002828/0.7388, allocations: 143 kB / 1.032 GB, free: 51.99 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007944/0.7396, allocations: 448 kB / 1.032 GB, free: 51.76 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.7397, allocations: 4.062 kB / 1.032 GB, free: 51.75 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.7399, allocations: 128.4 kB / 1.032 GB, free: 51.71 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.7403, allocations: 24.48 kB / 1.032 GB, free: 51.71 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007151/0.7411, allocations: 357.8 kB / 1.033 GB, free: 51.48 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.7413, allocations: 0.7227 MB / 1.033 GB, free: 50.78 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.858e-05/0.7414, allocations: 18.86 kB / 1.033 GB, free: 50.78 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.904e-05/0.7415, allocations: 17.23 kB / 1.033 GB, free: 50.77 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/0.7415, allocations: 2.719 kB / 1.033 GB, free: 50.77 MB / 0.698 GB Notification: Performance of Templates: time 0.006863/0.7483, allocations: 3.399 MB / 1.037 GB, free: 50.55 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)