Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.494/1.494, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.000957/0.0009573, allocations: 169 kB / 326.5 MB, free: 2.703 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205 MB / 0.5766 GB, free: 20.96 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.0009086/0.0009085, allocations: 93.36 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 13.48 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2522, allocations: 105.4 MB / 0.8968 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001616/0.2539, allocations: 1.136 MB / 0.8979 GB, free: 67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006283/0.2545, allocations: 285.7 kB / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.588e-05/0.2546, allocations: 0 / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.2547, allocations: 7.922 kB / 0.8981 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2549, allocations: 15.92 kB / 0.8982 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.255, allocations: 31.92 kB / 0.8982 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.418e-05/0.2552, allocations: 59.77 kB / 0.8982 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.62e-05/0.2553, allocations: 4.281 kB / 0.8982 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.2554, allocations: 23.92 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.2555, allocations: 35.89 kB / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.2555, allocations: 0 / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.2556, allocations: 4 kB / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.2556, allocations: 7.938 kB / 0.8983 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.633e-05/0.2557, allocations: 27.86 kB / 0.8983 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.869e-05/0.2558, allocations: 47.84 kB / 0.8984 GB, free: 66.46 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2558, allocations: 0 / 0.8984 GB, free: 66.46 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2558, allocations: 0 / 0.8984 GB, free: 66.46 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2558, allocations: 0 / 0.8984 GB, free: 66.46 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.0004692/0.2563, allocations: 389 kB / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2563, allocations: 12.03 kB / 0.8988 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.2564, allocations: 8.844 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.2565, allocations: 180.3 kB / 0.899 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2565, allocations: 8.375 kB / 0.899 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.2566, allocations: 384 / 0.899 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.2567, allocations: 78.11 kB / 0.899 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.2567, allocations: 192 / 0.899 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.2568, allocations: 7.938 kB / 0.899 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.2568, allocations: 4 kB / 0.899 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.2569, allocations: 47.91 kB / 0.8991 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003997/0.2573, allocations: 296.7 kB / 0.8994 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.2574, allocations: 70.5 kB / 0.8994 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/0.2575, allocations: 60.89 kB / 0.8995 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.2575, allocations: 0 / 0.8995 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.2577, allocations: 121.1 kB / 0.8996 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.2577, allocations: 0 / 0.8996 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003793/0.2581, allocations: 203.3 kB / 0.8998 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.2582, allocations: 118.8 kB / 0.8999 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.766e-05/0.2583, allocations: 109.8 kB / 0.9 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.2583, allocations: 33.7 kB / 0.9001 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.2583, allocations: 88.14 kB / 0.9001 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/0.2583, allocations: 27.69 kB / 0.9002 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.2584, allocations: 21.72 kB / 0.9002 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.2584, allocations: 322.8 kB / 0.9005 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.865e-05/0.2585, allocations: 43.97 kB / 0.9005 GB, free: 64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.2586, allocations: 106.4 kB / 0.9006 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2588, allocations: 215.8 kB / 0.9008 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2589, allocations: 7.938 kB / 0.9009 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002744/0.2591, allocations: 199.1 kB / 0.901 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.2592, allocations: 33.98 kB / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2592, allocations: 4 kB / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.2592, allocations: 4 kB / 0.9011 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.2593, allocations: 23.92 kB / 0.9011 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.2593, allocations: 4 kB / 0.9011 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.2594, allocations: 23.83 kB / 0.9011 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.2594, allocations: 8 kB / 0.9011 GB, free: 63.29 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.2596, allocations: 176.2 kB / 0.9013 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.2596, allocations: 11.84 kB / 0.9013 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.2596, allocations: 16.36 kB / 0.9013 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2596, allocations: 0 / 0.9013 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2596, allocations: 0 / 0.9013 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2596, allocations: 0 / 0.9013 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.667e-05/0.2598, allocations: 185.5 kB / 0.9015 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2598, allocations: 0 / 0.9015 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-05/0.2598, allocations: 11.98 kB / 0.9015 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2598, allocations: 3.938 kB / 0.9015 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.2598, allocations: 8 kB / 0.9015 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2598, allocations: 4 kB / 0.9015 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2599, allocations: 0 / 0.9015 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.2601, allocations: 222.6 kB / 0.9018 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.2602, allocations: 88.95 kB / 0.9018 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.2602, allocations: 11.98 kB / 0.9018 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.184e-05/0.2603, allocations: 8 kB / 0.9019 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.2603, allocations: 7.938 kB / 0.9019 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.2603, allocations: 7.984 kB / 0.9019 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.983e-05/0.2604, allocations: 83.28 kB / 0.902 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2604, allocations: 0 / 0.902 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002101/0.2606, allocations: 24 kB / 0.902 GB, free: 62.33 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 (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.0001035/0.2607, allocations: 114.8 kB / 0.9021 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002739/0.261, allocations: 175.2 kB / 0.9023 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.261, allocations: 0 / 0.9023 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.2611, allocations: 187.3 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.2613, allocations: 16.5 kB / 0.9024 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003821/0.2617, allocations: 214.7 kB / 0.9026 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.2619, allocations: 0.6887 MB / 0.9033 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.2619, allocations: 11.44 kB / 0.9033 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of SimCode: time 4.5e-07/0.2619, allocations: 0 / 0.9033 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of Templates: time 0.002363/0.2643, allocations: 1.104 MB / 0.9044 GB, free: 59.76 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)