Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01018/0.01018, allocations: 92.75 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001923/0.001923, allocations: 170.7 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.195/2.195, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.45/2.45, allocations: 252.8 MB / 0.511 GB, free: 8.348 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006235/0.0006236, allocations: 14.97 kB / 0.6243 GB, free: 28.35 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2216, allocations: 106.2 MB / 0.7281 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002172/0.2238, allocations: 1.308 MB / 0.7294 GB, free: 8.82 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.000962/0.2248, allocations: 371.8 kB / 0.7297 GB, free: 8.453 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.2249, allocations: 0 / 0.7297 GB, free: 8.453 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 9.135e-05/0.225, allocations: 11.94 kB / 0.7297 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.2252, allocations: 35.86 kB / 0.7298 GB, free: 8.406 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.2255, allocations: 59.86 kB / 0.7298 GB, free: 8.348 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.2257, allocations: 111.7 kB / 0.7299 GB, free: 8.238 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.2259, allocations: 25.45 kB / 0.73 GB, free: 8.207 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2261, allocations: 71.81 kB / 0.73 GB, free: 8.137 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.2263, allocations: 83.66 kB / 0.7301 GB, free: 8.055 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.827e-05/0.2263, allocations: 8 kB / 0.7301 GB, free: 8.047 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 3.733e-05/0.2264, allocations: 4 kB / 0.7301 GB, free: 8.043 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 7.738e-05/0.2265, allocations: 35.89 kB / 0.7301 GB, free: 8.008 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 7.33e-05/0.2265, allocations: 53.62 kB / 0.7302 GB, free: 7.949 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.2268, allocations: 115.9 kB / 0.7303 GB, free: 7.836 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2268, allocations: 0 / 0.7303 GB, free: 7.836 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2268, allocations: 0 / 0.7303 GB, free: 7.836 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.2268, allocations: 0 / 0.7303 GB, free: 7.836 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001186/0.228, allocations: 463.2 kB / 0.7307 GB, free: 7.336 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.2281, allocations: 8.031 kB / 0.7308 GB, free: 7.328 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.382e-05/0.2281, allocations: 50.48 kB / 0.7308 GB, free: 7.27 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.2282, allocations: 27.75 kB / 0.7308 GB, free: 7.242 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.2285, allocations: 214.8 kB / 0.731 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.2286, allocations: 8 kB / 0.731 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.309e-05/0.2286, allocations: 19.98 kB / 0.7311 GB, free: 6.965 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.2292, allocations: 185.5 kB / 0.7312 GB, free: 6.777 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2292, allocations: 0 / 0.7312 GB, free: 6.777 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.2293, allocations: 3.984 kB / 0.7312 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2293, allocations: 4 kB / 0.7312 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003978/0.2297, allocations: 111.8 kB / 0.7314 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000895/0.2306, allocations: 412.4 kB / 0.7317 GB, free: 6.207 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004468/0.2311, allocations: 162.3 kB / 0.7319 GB, free: 6.039 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.2311, allocations: 3.938 kB / 0.7319 GB, free: 6.035 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005822/0.2317, allocations: 192.8 kB / 0.7321 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=28): time 4.448e-06/0.2317, allocations: 3.984 kB / 0.7321 GB, free: 5.832 MB / 0.5573 GB Notification: Performance of matching and sorting (n=28): time 0.001441/0.2332, allocations: 0.5878 MB / 0.7327 GB, free: 5.207 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.2333, allocations: 63.33 kB / 0.7327 GB, free: 5.133 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.2335, allocations: 142.1 kB / 0.7329 GB, free: 4.98 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.2335, allocations: 41.7 kB / 0.7329 GB, free: 4.934 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.2336, allocations: 104.6 kB / 0.733 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.2337, allocations: 63.25 kB / 0.7331 GB, free: 4.766 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.2338, allocations: 7.984 kB / 0.7331 GB, free: 4.758 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2339, allocations: 338.9 kB / 0.7334 GB, free: 4.418 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.2343, allocations: 100.3 kB / 0.7335 GB, free: 4.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.2347, allocations: 171.3 kB / 0.7337 GB, free: 4.129 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003832/0.2351, allocations: 129.6 kB / 0.7338 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2351, allocations: 0 / 0.7338 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009844/0.2361, allocations: 339.3 kB / 0.7341 GB, free: 3.668 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.2362, allocations: 8 kB / 0.7341 GB, free: 3.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.2362, allocations: 0 / 0.7341 GB, free: 3.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.2362, allocations: 7.938 kB / 0.7341 GB, free: 3.652 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.2367, allocations: 59.91 kB / 0.7342 GB, free: 3.594 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.2367, allocations: 7.938 kB / 0.7342 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.2371, allocations: 39.73 kB / 0.7342 GB, free: 3.547 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.215e-05/0.2371, allocations: 15.98 kB / 0.7342 GB, free: 3.531 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.2374, allocations: 169.7 kB / 0.7344 GB, free: 3.355 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.87e-05/0.2375, allocations: 15.81 kB / 0.7344 GB, free: 3.34 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.2375, allocations: 17.95 kB / 0.7344 GB, free: 3.324 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.2375, allocations: 7.984 kB / 0.7344 GB, free: 3.316 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2375, allocations: 0 / 0.7344 GB, free: 3.316 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2376, allocations: 0 / 0.7344 GB, free: 3.316 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.2393, allocations: 0.7251 MB / 0.7351 GB, free: 2.531 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2393, allocations: 3.938 kB / 0.7351 GB, free: 2.527 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.2394, allocations: 4 kB / 0.7351 GB, free: 2.523 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.2394, allocations: 7.938 kB / 0.7352 GB, free: 2.516 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/0.2395, allocations: 7.984 kB / 0.7352 GB, free: 2.508 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.054e-05/0.2395, allocations: 4 kB / 0.7352 GB, free: 2.504 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2395, allocations: 3.984 kB / 0.7352 GB, free: 2.5 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.2406, allocations: 450.4 kB / 0.7356 GB, free: 2.047 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.2406, allocations: 92.86 kB / 0.7357 GB, free: 1.938 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.2408, allocations: 19.98 kB / 0.7357 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.2411, allocations: 23.97 kB / 0.7357 GB, free: 1.895 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.2412, allocations: 15.97 kB / 0.7357 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/0.2412, allocations: 23.98 kB / 0.7358 GB, free: 1.855 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001118/0.2414, allocations: 110 kB / 0.7359 GB, free: 1.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2414, allocations: 4 kB / 0.7359 GB, free: 1.746 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004598/0.2419, allocations: 48 kB / 0.7359 GB, free: 1.699 MB / 0.5573 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001432/0.2433, allocations: 1.007 MB / 0.7369 GB, free: 0.668 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0008831/0.2442, allocations: 267.6 kB / 0.7372 GB, free: 416 kB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2442, allocations: 0 / 0.7372 GB, free: 416 kB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.2446, allocations: 122.9 kB / 0.7373 GB, free: 296 kB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.245, allocations: 23.97 kB / 0.7373 GB, free: 272 kB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.2468, allocations: 1.67 MB / 0.7389 GB, free: 14.51 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.2472, allocations: 0.7284 MB / 0.7396 GB, free: 13.75 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001299/0.2473, allocations: 17.95 kB / 0.7397 GB, free: 13.74 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.2475, allocations: 51.41 kB / 0.7397 GB, free: 13.69 MB / 0.573 GB Notification: Performance of SimCode: time 9.72e-07/0.2475, allocations: 0 / 0.7397 GB, free: 13.69 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.2754, allocations: 3.945 MB / 0.7436 GB, free: 9.867 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003572/0.2759, allocations: 205.1 kB / 0.7438 GB, free: 9.625 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/2.928, allocations: 0 / 0.7438 GB, free: 9.625 MB / 0.573 GB