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.00156/0.00156, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.002435/0.002435, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.4 MB / 222.1 MB, free: 5.5 MB / 174.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.714/1.714, allocations: 292.7 MB / 0.5499 GB, free: 14.56 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.000635/0.0006353, allocations: 14.34 kB / 0.6737 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.247, allocations: 116.3 MB / 0.7873 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001749/0.2488, allocations: 1.107 MB / 0.7884 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005652/0.2494, allocations: 269.2 kB / 0.7886 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.927e-05/0.2495, allocations: 0 / 0.7886 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.901e-05/0.2496, allocations: 7.938 kB / 0.7886 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.2497, allocations: 7.922 kB / 0.7887 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.2498, allocations: 31.97 kB / 0.7887 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.25, allocations: 55.78 kB / 0.7887 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.945e-05/0.25, allocations: 4 kB / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.684e-05/0.2501, allocations: 23.92 kB / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.2502, allocations: 31.89 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.2503, allocations: 0 / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.187e-05/0.2503, allocations: 4 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.039e-05/0.2503, allocations: 11.92 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.2504, allocations: 37.7 kB / 0.7888 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.116e-05/0.2505, allocations: 40.2 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2505, allocations: 0 / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2505, allocations: 0 / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.2505, allocations: 0 / 0.7889 GB, free: 10.28 MB / 0.6075 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.0004825/0.251, allocations: 388.7 kB / 0.7893 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.251, allocations: 8.031 kB / 0.7893 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.2511, allocations: 4 kB / 0.7893 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.2512, allocations: 186.9 kB / 0.7894 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2512, allocations: 4 kB / 0.7895 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2513, allocations: 4 kB / 0.7895 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.2514, allocations: 77.64 kB / 0.7895 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2514, allocations: 0 / 0.7895 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.2515, allocations: 0 / 0.7895 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2515, allocations: 0 / 0.7895 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.2516, allocations: 47.97 kB / 0.7896 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.252, allocations: 296.8 kB / 0.7899 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.2521, allocations: 70.56 kB / 0.7899 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.956e-05/0.2522, allocations: 56.89 kB / 0.79 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2523, allocations: 8 kB / 0.79 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.2525, allocations: 117.1 kB / 0.7901 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.2525, allocations: 7.875 kB / 0.7901 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003793/0.2529, allocations: 211.3 kB / 0.7903 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.253, allocations: 122.8 kB / 0.7904 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.89e-05/0.253, allocations: 105.8 kB / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.2531, allocations: 33.7 kB / 0.7906 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.2531, allocations: 92.08 kB / 0.7906 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.2532, allocations: 23.7 kB / 0.7907 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.2532, allocations: 4 kB / 0.7907 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2533, allocations: 326.8 kB / 0.791 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-05/0.2534, allocations: 35.97 kB / 0.791 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2535, allocations: 112.5 kB / 0.7911 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.2536, allocations: 77.69 kB / 0.7912 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2536, allocations: 0 / 0.7912 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003062/0.2539, allocations: 219 kB / 0.7914 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.254, allocations: 33.7 kB / 0.7914 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.254, allocations: 4 kB / 0.7914 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.254, allocations: 0 / 0.7914 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.2542, allocations: 27.98 kB / 0.7915 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2542, allocations: 11.89 kB / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.916e-05/0.2543, allocations: 11.84 kB / 0.7915 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.2543, allocations: 8.5 kB / 0.7915 GB, free: 7.301 MB / 0.6075 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.0001362/0.2544, allocations: 180.8 kB / 0.7917 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.66e-05/0.2545, allocations: 7.906 kB / 0.7917 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.097e-05/0.2545, allocations: 4.375 kB / 0.7917 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2545, allocations: 0 / 0.7917 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.2545, allocations: 4 kB / 0.7917 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2545, allocations: 7.891 kB / 0.7917 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.2547, allocations: 185.6 kB / 0.7919 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.2547, allocations: 4 kB / 0.7919 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.2547, allocations: 4 kB / 0.7919 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2547, allocations: 4 kB / 0.7919 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2547, allocations: 4 kB / 0.7919 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2547, allocations: 0 / 0.7919 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2548, allocations: 0 / 0.7919 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.2551, allocations: 242.5 kB / 0.7921 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.2551, allocations: 85.02 kB / 0.7922 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.2552, allocations: 8 kB / 0.7922 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.883e-05/0.2552, allocations: 7.984 kB / 0.7922 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.2553, allocations: 4 kB / 0.7922 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2553, allocations: 4 kB / 0.7922 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.617e-05/0.2553, allocations: 91.25 kB / 0.7923 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2554, allocations: 3.938 kB / 0.7923 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002204/0.2556, allocations: 24 kB / 0.7923 GB, free: 6.336 MB / 0.6075 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.0001205/0.2557, allocations: 129.3 kB / 0.7925 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002828/0.256, allocations: 171.3 kB / 0.7926 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.256, allocations: 0.5625 kB / 0.7926 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.2562, allocations: 195.3 kB / 0.7928 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.2564, allocations: 8 kB / 0.7928 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003822/0.2568, allocations: 197.1 kB / 0.793 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.2571, allocations: 0.6926 MB / 0.7937 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.888e-05/0.2571, allocations: 8.953 kB / 0.7937 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.2571, allocations: 7.438 kB / 0.7937 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2571, allocations: 4 kB / 0.7937 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of Templates: time 0.002948/0.2601, allocations: 0.8633 MB / 0.7945 GB, free: 3.996 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: