Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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.00732/0.007321, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001329/0.001329, allocations: 196.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.661/1.661, allocations: 251.7 MB / 0.5094 GB, free: 3.09 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 78.08 kB / 0.7258 GB, free: 9.066 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2777, allocations: 104.7 MB / 0.828 GB, free: 260 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.003017/0.2807, allocations: 1.644 MB / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008524/0.2816, allocations: 363.7 kB / 0.83 GB, free: 14.24 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.212e-05/0.2817, allocations: 4 kB / 0.83 GB, free: 14.24 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.2818, allocations: 15.81 kB / 0.83 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.282, allocations: 39.69 kB / 0.83 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.2823, allocations: 75.84 kB / 0.8301 GB, free: 14.11 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.2826, allocations: 179.5 kB / 0.8303 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.2827, allocations: 25.48 kB / 0.8303 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.2829, allocations: 87.69 kB / 0.8304 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.2831, allocations: 95.64 kB / 0.8305 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.2832, allocations: 16 kB / 0.8305 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.2832, allocations: 16 kB / 0.8305 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.459e-05/0.2833, allocations: 39.89 kB / 0.8306 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2834, allocations: 83.56 kB / 0.8306 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002508/0.2837, allocations: 179.2 kB / 0.8308 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2837, allocations: 0 / 0.8308 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2837, allocations: 0 / 0.8308 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.2837, allocations: 0 / 0.8308 GB, free: 13.39 MB / 0.6544 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.001077/0.2848, allocations: 0.4899 MB / 0.8313 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.2849, allocations: 15.97 kB / 0.8313 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.44e-05/0.2849, allocations: 20.83 kB / 0.8313 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.2852, allocations: 212.1 kB / 0.8315 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.2853, allocations: 12.38 kB / 0.8315 GB, free: 12.56 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.2853, allocations: 12.36 kB / 0.8315 GB, free: 12.55 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.2857, allocations: 183.8 kB / 0.8317 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2857, allocations: 4.188 kB / 0.8317 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.2858, allocations: 15.92 kB / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2858, allocations: 0 / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.286, allocations: 99.88 kB / 0.8318 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.2867, allocations: 416.4 kB / 0.8322 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.287, allocations: 154.4 kB / 0.8324 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.2872, allocations: 96.98 kB / 0.8325 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.2873, allocations: 3.953 kB / 0.8325 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.2876, allocations: 199.9 kB / 0.8327 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 3.627e-06/0.2876, allocations: 0 / 0.8327 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008554/0.2885, allocations: 451.8 kB / 0.8331 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.2886, allocations: 55.41 kB / 0.8332 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.2887, allocations: 144.9 kB / 0.8333 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.2889, allocations: 45.69 kB / 0.8333 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.2889, allocations: 104.6 kB / 0.8334 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.289, allocations: 63.58 kB / 0.8335 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.2892, allocations: 65.69 kB / 0.8336 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002133/0.2894, allocations: 338.8 kB / 0.8339 GB, free: 10.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.2896, allocations: 108.2 kB / 0.834 GB, free: 9.926 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/0.2899, allocations: 163.6 kB / 0.8341 GB, free: 9.742 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.2903, allocations: 275.7 kB / 0.8344 GB, free: 9.449 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2903, allocations: 0 / 0.8344 GB, free: 9.449 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000574/0.2909, allocations: 343.3 kB / 0.8347 GB, free: 9.109 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2909, allocations: 12 kB / 0.8347 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.2909, allocations: 0 / 0.8347 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.2909, allocations: 4 kB / 0.8347 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.2912, allocations: 59.91 kB / 0.8348 GB, free: 9.035 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.2912, allocations: 7.938 kB / 0.8348 GB, free: 9.027 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.2914, allocations: 35.77 kB / 0.8348 GB, free: 8.992 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.2914, allocations: 16 kB / 0.8349 GB, free: 8.977 MB / 0.6544 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,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,$whenCondition3,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001677/0.2916, allocations: 169.8 kB / 0.835 GB, free: 8.801 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.2917, allocations: 15.91 kB / 0.835 GB, free: 8.785 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.108e-05/0.2917, allocations: 17.86 kB / 0.8351 GB, free: 8.766 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2917, allocations: 4 kB / 0.8351 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2917, allocations: 0 / 0.8351 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2917, allocations: 0 / 0.8351 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.2928, allocations: 0.7052 MB / 0.8357 GB, free: 8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2928, allocations: 11.98 kB / 0.8358 GB, free: 7.988 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.157e-05/0.2928, allocations: 4 kB / 0.8358 GB, free: 7.984 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.2928, allocations: 0 / 0.8358 GB, free: 7.984 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.2929, allocations: 15.86 kB / 0.8358 GB, free: 7.969 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2929, allocations: 0 / 0.8358 GB, free: 7.969 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2929, allocations: 0 / 0.8358 GB, free: 7.969 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.2935, allocations: 451.8 kB / 0.8362 GB, free: 7.512 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.2936, allocations: 93.02 kB / 0.8363 GB, free: 7.402 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.2936, allocations: 19.92 kB / 0.8363 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2938, allocations: 19.97 kB / 0.8363 GB, free: 7.363 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.875e-05/0.2939, allocations: 19.97 kB / 0.8364 GB, free: 7.344 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.2939, allocations: 19.98 kB / 0.8364 GB, free: 7.324 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.184e-05/0.294, allocations: 107.2 kB / 0.8365 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.294, allocations: 0 / 0.8365 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000299/0.2943, allocations: 51.98 kB / 0.8365 GB, free: 7.168 MB / 0.6544 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 (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.0002133/0.2945, allocations: 137.4 kB / 0.8367 GB, free: 7.027 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005404/0.2951, allocations: 263.1 kB / 0.8369 GB, free: 6.773 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2951, allocations: 0 / 0.8369 GB, free: 6.773 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.2953, allocations: 115.9 kB / 0.837 GB, free: 6.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.2957, allocations: 40.28 kB / 0.8371 GB, free: 6.621 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.2963, allocations: 317 kB / 0.8374 GB, free: 6.285 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.2967, allocations: 0.7244 MB / 0.8381 GB, free: 5.535 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 8.205e-05/0.2967, allocations: 25.94 kB / 0.8381 GB, free: 5.508 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.43e-05/0.2968, allocations: 19.44 kB / 0.8381 GB, free: 5.488 MB / 0.6544 GB Notification: Performance of SimCode: time 2.8e-07/0.2968, allocations: 4 kB / 0.8381 GB, free: 5.484 MB / 0.6544 GB Notification: Performance of Templates: time 0.006186/0.303, allocations: 2.744 MB / 0.8408 GB, free: 2.758 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)