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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 252 MB / 268 MB, free: 10.88 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009628/0.0009628, allocations: 173 kB / 327.6 MB, free: 2.105 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.4 MB / 0.5786 GB, free: 20.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008125/0.0008125, allocations: 97.36 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003278, allocations: 9.719 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2349, allocations: 106.3 MB / 0.9015 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001645/0.2365, allocations: 1.347 MB / 0.9028 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006142/0.2372, allocations: 367.8 kB / 0.9031 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.294e-05/0.2373, allocations: 3.938 kB / 0.9031 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.2374, allocations: 7.938 kB / 0.9031 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2375, allocations: 31.77 kB / 0.9032 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002274/0.2378, allocations: 71.86 kB / 0.9032 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001567/0.2379, allocations: 175.4 kB / 0.9034 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2381, allocations: 25.41 kB / 0.9034 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2382, allocations: 67.81 kB / 0.9035 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.2384, allocations: 87.59 kB / 0.9036 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.2384, allocations: 8 kB / 0.9036 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.588e-05/0.2385, allocations: 8 kB / 0.9036 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.083e-05/0.2385, allocations: 35.83 kB / 0.9036 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.26e-05/0.2386, allocations: 93.36 kB / 0.9037 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.2388, allocations: 131.9 kB / 0.9038 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2388, allocations: 0 / 0.9038 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2388, allocations: 0 / 0.9038 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.2388, allocations: 0 / 0.9038 GB, free: 61.03 MB / 0.6042 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.000817/0.2396, allocations: 460.1 kB / 0.9043 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.2397, allocations: 8.031 kB / 0.9043 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.039e-05/0.2397, allocations: 20.75 kB / 0.9043 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.2399, allocations: 222.4 kB / 0.9045 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.24, allocations: 12.36 kB / 0.9045 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.24, allocations: 20.36 kB / 0.9046 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.2403, allocations: 190.1 kB / 0.9047 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2403, allocations: 4.188 kB / 0.9047 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.2404, allocations: 3.938 kB / 0.9047 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.2404, allocations: 4 kB / 0.9047 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.2406, allocations: 103.9 kB / 0.9048 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.2411, allocations: 420.4 kB / 0.9052 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.2414, allocations: 154.3 kB / 0.9054 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.2416, allocations: 99.8 kB / 0.9055 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2416, allocations: 4.172 kB / 0.9055 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.2419, allocations: 199.9 kB / 0.9057 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.2419, allocations: 0 / 0.9057 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0007262/0.2426, allocations: 454.7 kB / 0.9061 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.2427, allocations: 59.39 kB / 0.9062 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.2428, allocations: 142.1 kB / 0.9063 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.2429, allocations: 37.69 kB / 0.9063 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.812e-05/0.2429, allocations: 100.6 kB / 0.9064 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.258e-05/0.243, allocations: 71.17 kB / 0.9065 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.243, allocations: 8 kB / 0.9065 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.915e-05/0.2431, allocations: 334.8 kB / 0.9068 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.2433, allocations: 104.3 kB / 0.9069 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.2435, allocations: 171.5 kB / 0.9071 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.2438, allocations: 275.7 kB / 0.9074 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2438, allocations: 0 / 0.9074 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004501/0.2443, allocations: 347.1 kB / 0.9077 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2443, allocations: 8 kB / 0.9077 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2443, allocations: 11.92 kB / 0.9077 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.2444, allocations: 4 kB / 0.9077 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.2446, allocations: 63.91 kB / 0.9078 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2447, allocations: 0 / 0.9078 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.2448, allocations: 47.83 kB / 0.9078 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.2449, allocations: 12 kB / 0.9078 GB, free: 56.68 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.245, allocations: 165.8 kB / 0.908 GB, free: 56.51 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.245, allocations: 19.84 kB / 0.908 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.2451, allocations: 13.88 kB / 0.908 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2451, allocations: 0 / 0.908 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2451, allocations: 4 kB / 0.908 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2451, allocations: 7.984 kB / 0.908 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008299/0.2459, allocations: 0.7207 MB / 0.9087 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.246, allocations: 0 / 0.9087 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.246, allocations: 11.98 kB / 0.9088 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.246, allocations: 0 / 0.9088 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.246, allocations: 11.92 kB / 0.9088 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2461, allocations: 0 / 0.9088 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2461, allocations: 0 / 0.9088 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004928/0.2466, allocations: 463.8 kB / 0.9092 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.2466, allocations: 96.8 kB / 0.9093 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.921e-05/0.2467, allocations: 19.92 kB / 0.9093 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.2468, allocations: 23.97 kB / 0.9093 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.2469, allocations: 19.97 kB / 0.9094 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.2469, allocations: 19.98 kB / 0.9094 GB, free: 55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.037e-05/0.247, allocations: 109.5 kB / 0.9095 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.247, allocations: 0 / 0.9095 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002637/0.2473, allocations: 51.98 kB / 0.9095 GB, free: 54.85 MB / 0.6042 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.0001429/0.2474, allocations: 130.4 kB / 0.9097 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004259/0.2478, allocations: 267.9 kB / 0.9099 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2479, allocations: 4 kB / 0.9099 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.248, allocations: 115.9 kB / 0.91 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.2484, allocations: 27.97 kB / 0.9101 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000542/0.249, allocations: 393.1 kB / 0.9104 GB, free: 53.88 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.2491, allocations: 0.7206 MB / 0.9111 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.225e-05/0.2492, allocations: 23.42 kB / 0.9112 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of SimCode: time 3.4e-07/0.2492, allocations: 3.938 kB / 0.9112 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of Templates: time 0.003498/0.2527, allocations: 2.608 MB / 0.9137 GB, free: 50.52 MB / 0.6042 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)