Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.001076, allocations: 105.8 kB / 15.99 MB, free: 5.914 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.0011/0.0011, allocations: 192 kB / 16.91 MB, free: 5.758 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.337/1.337, allocations: 205.1 MB / 222.8 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.722/1.722, allocations: 292.3 MB / 0.5492 GB, free: 17.43 MB / 462.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.001401/0.001402, allocations: 67.59 kB / 0.6717 GB, free: 6.93 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2473, allocations: 114.6 MB / 0.7835 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002534/0.2499, allocations: 1.438 MB / 0.7849 GB, free: 2.801 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005385/0.2505, allocations: 292 kB / 0.7852 GB, free: 2.512 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.2505, allocations: 0 / 0.7852 GB, free: 2.512 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.2506, allocations: 3.938 kB / 0.7852 GB, free: 2.508 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.2507, allocations: 3.938 kB / 0.7852 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.2509, allocations: 35.89 kB / 0.7853 GB, free: 2.469 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.251, allocations: 63.86 kB / 0.7853 GB, free: 2.406 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.2511, allocations: 4 kB / 0.7853 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2513, allocations: 31.91 kB / 0.7854 GB, free: 2.371 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.2514, allocations: 31.84 kB / 0.7854 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.2514, allocations: 4 kB / 0.7854 GB, free: 2.336 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.447e-05/0.2514, allocations: 4 kB / 0.7854 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.2515, allocations: 11.98 kB / 0.7854 GB, free: 2.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.07e-05/0.2515, allocations: 31.88 kB / 0.7854 GB, free: 2.289 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 9.701e-05/0.2516, allocations: 56.11 kB / 0.7855 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2516, allocations: 0 / 0.7855 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.514e-06/0.2516, allocations: 0 / 0.7855 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.2517, allocations: 0 / 0.7855 GB, free: 2.234 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005069/0.2522, allocations: 393 kB / 0.7859 GB, free: 1.793 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.2522, allocations: 8.031 kB / 0.7859 GB, free: 1.785 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.2523, allocations: 12.84 kB / 0.7859 GB, free: 1.773 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.2524, allocations: 180.3 kB / 0.7861 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.2525, allocations: 384 / 0.7861 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.2525, allocations: 12.36 kB / 0.7861 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/0.2526, allocations: 70.22 kB / 0.7861 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.2527, allocations: 4.188 kB / 0.7861 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.2527, allocations: 3.938 kB / 0.7861 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2527, allocations: 0 / 0.7861 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.973e-05/0.2528, allocations: 31.98 kB / 0.7862 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004158/0.2532, allocations: 300.7 kB / 0.7865 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.2533, allocations: 70.5 kB / 0.7865 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.931e-05/0.2534, allocations: 60.83 kB / 0.7866 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.2535, allocations: 3.984 kB / 0.7866 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.2537, allocations: 113.1 kB / 0.7867 GB, free: 0.8164 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.2537, allocations: 0 / 0.7867 GB, free: 0.8164 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003748/0.2541, allocations: 199.2 kB / 0.7869 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.2542, allocations: 122.8 kB / 0.787 GB, free: 476 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.902e-05/0.2543, allocations: 109.8 kB / 0.7871 GB, free: 356 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.2543, allocations: 33.7 kB / 0.7871 GB, free: 316 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.53e-05/0.2543, allocations: 88.08 kB / 0.7872 GB, free: 224 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.2544, allocations: 31.75 kB / 0.7873 GB, free: 192 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.2544, allocations: 37.7 kB / 0.7873 GB, free: 148 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.3389/0.5934, allocations: 318.8 kB / 0.7876 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.5935, allocations: 36.59 kB / 0.7876 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.5937, allocations: 103.5 kB / 0.7877 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.5939, allocations: 212.4 kB / 0.7879 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.5939, allocations: 3.75 kB / 0.7879 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003199/0.5942, allocations: 199.3 kB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.5943, allocations: 36.42 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.5943, allocations: 2.75 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.5943, allocations: 3.25 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.5944, allocations: 26.22 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.5945, allocations: 9.594 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.079e-05/0.5946, allocations: 13.55 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.5946, allocations: 7.875 kB / 0.7882 GB, free: 48.36 MB / 0.6544 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.0001268/0.5947, allocations: 176.7 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.5947, allocations: 13.03 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.5948, allocations: 5.547 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.5948, allocations: 2.625 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.5948, allocations: 3.938 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5948, allocations: 0.5938 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.656e-05/0.5949, allocations: 185.5 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.5949, allocations: 4.203 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.763e-05/0.595, allocations: 9.375 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.595, allocations: 2.625 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.595, allocations: 2.625 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.595, allocations: 0 / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.595, allocations: 4.625 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.5953, allocations: 216.9 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.225e-05/0.5953, allocations: 84.3 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.5953, allocations: 10.12 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.109e-05/0.5954, allocations: 7.344 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.5955, allocations: 16.33 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.5955, allocations: 5.781 kB / 0.7889 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.222e-05/0.5955, allocations: 91.58 kB / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5955, allocations: 0 / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002247/0.5957, allocations: 22.97 kB / 0.789 GB, free: 47.75 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: 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.0001034/0.5958, allocations: 109.7 kB / 0.7892 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.5961, allocations: 176.2 kB / 0.7893 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5961, allocations: 0.5 kB / 0.7893 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.5963, allocations: 185.5 kB / 0.7895 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.5965, allocations: 10.38 kB / 0.7895 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.5969, allocations: 220.2 kB / 0.7897 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.5971, allocations: 0.6905 MB / 0.7904 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/0.5971, allocations: 10.31 kB / 0.7904 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.5971, allocations: 3.438 kB / 0.7904 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of Templates: time 0.002361/0.5995, allocations: 1.113 MB / 0.7915 GB, free: 46.67 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)