Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.275/2.275, allocations: 251.3 MB / 266.2 MB, free: 11.53 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001331/0.00133, allocations: 185.1 kB / 325.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.295/2.295, allocations: 205.4 MB / 0.5767 GB, free: 21.12 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009311/0.0009309, allocations: 90.3 kB / 0.6812 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006414/0.0006416, allocations: 20.48 kB / 0.7953 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2193, allocations: 106.3 MB / 0.8991 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001586/0.221, allocations: 1.117 MB / 0.9001 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000608/0.2216, allocations: 268.2 kB / 0.9004 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.552e-05/0.2217, allocations: 3.938 kB / 0.9004 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.953e-05/0.2218, allocations: 0 / 0.9004 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.2219, allocations: 11.92 kB / 0.9004 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.2221, allocations: 31.91 kB / 0.9004 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.319e-05/0.2222, allocations: 47.86 kB / 0.9005 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.577e-05/0.2223, allocations: 11.92 kB / 0.9005 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.488e-05/0.2224, allocations: 31.91 kB / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.2225, allocations: 31.84 kB / 0.9006 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.2226, allocations: 0 / 0.9006 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.2226, allocations: 4 kB / 0.9006 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.2226, allocations: 7.938 kB / 0.9006 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.2227, allocations: 37.64 kB / 0.9006 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.913e-05/0.2228, allocations: 47.89 kB / 0.9007 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2228, allocations: 0 / 0.9007 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2228, allocations: 0 / 0.9007 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.2228, allocations: 0 / 0.9007 GB, free: 64.21 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004868/0.2233, allocations: 389 kB / 0.901 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2234, allocations: 11.97 kB / 0.901 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.923e-05/0.2234, allocations: 8.844 kB / 0.901 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.2236, allocations: 176.3 kB / 0.9012 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2236, allocations: 4.375 kB / 0.9012 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.2236, allocations: 4.375 kB / 0.9012 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.2239, allocations: 74.17 kB / 0.9013 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.2239, allocations: 4.172 kB / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.2239, allocations: 7.938 kB / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2239, allocations: 0 / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.2241, allocations: 47.92 kB / 0.9014 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004661/0.2246, allocations: 292.8 kB / 0.9016 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.2248, allocations: 74.5 kB / 0.9017 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2249, allocations: 64.92 kB / 0.9018 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.225, allocations: 0 / 0.9018 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.2252, allocations: 121.1 kB / 0.9019 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.2252, allocations: 0 / 0.9019 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0005455/0.2258, allocations: 195.3 kB / 0.9021 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.2258, allocations: 122.8 kB / 0.9022 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.2259, allocations: 117.7 kB / 0.9023 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.226, allocations: 33.81 kB / 0.9023 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.226, allocations: 88.08 kB / 0.9024 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.2261, allocations: 35.64 kB / 0.9024 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-06/0.2261, allocations: 0 / 0.9024 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.13e-05/0.2262, allocations: 318.8 kB / 0.9027 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.2263, allocations: 39.98 kB / 0.9028 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.2265, allocations: 104.5 kB / 0.9029 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.2267, allocations: 89.62 kB / 0.903 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2267, allocations: 3.938 kB / 0.903 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004631/0.2272, allocations: 199.1 kB / 0.9032 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.2272, allocations: 37.69 kB / 0.9032 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2272, allocations: 4.281 kB / 0.9032 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.2272, allocations: 4 kB / 0.9032 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.2274, allocations: 27.92 kB / 0.9032 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.2275, allocations: 0 / 0.9032 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.2276, allocations: 12 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.2276, allocations: 8 kB / 0.9033 GB, free: 61.25 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001557/0.2278, allocations: 179.2 kB / 0.9034 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.2278, allocations: 15.91 kB / 0.9034 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.2279, allocations: 8.375 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2279, allocations: 0 / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2279, allocations: 3.938 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2279, allocations: 0 / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.228, allocations: 201.3 kB / 0.9036 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2281, allocations: 0 / 0.9036 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-05/0.2281, allocations: 7.984 kB / 0.9037 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.2281, allocations: 0 / 0.9037 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2282, allocations: 4 kB / 0.9037 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2282, allocations: 4 kB / 0.9037 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2282, allocations: 0 / 0.9037 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.2286, allocations: 222.6 kB / 0.9039 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.2287, allocations: 89 kB / 0.904 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.185e-05/0.2287, allocations: 8 kB / 0.904 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/0.2288, allocations: 8 kB / 0.904 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.2289, allocations: 7.984 kB / 0.904 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.2289, allocations: 4 kB / 0.904 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.98e-05/0.229, allocations: 83.28 kB / 0.9041 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.21e-07/0.229, allocations: 0 / 0.9041 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002892/0.2293, allocations: 24 kB / 0.9041 GB, free: 60.29 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001277/0.2294, allocations: 109.1 kB / 0.9042 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003931/0.2298, allocations: 179.2 kB / 0.9044 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2299, allocations: 4 kB / 0.9044 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00024/0.2301, allocations: 187.4 kB / 0.9045 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.2304, allocations: 13.19 kB / 0.9046 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004485/0.2308, allocations: 201.1 kB / 0.9047 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.231, allocations: 0.6887 MB / 0.9054 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.554e-05/0.2311, allocations: 12.66 kB / 0.9054 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.403e-05/0.2311, allocations: 15.44 kB / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of SimCode: time 9.21e-07/0.2311, allocations: 0 / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of Templates: time 0.003848/0.235, allocations: 0.8566 MB / 0.9063 GB, free: 57.95 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)