Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.867/3.867, allocations: 251.1 MB / 266.7 MB, free: 11.54 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.00273/0.00273, allocations: 180.9 kB / 326.2 MB, free: 2.855 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.051/4.051, allocations: 205.4 MB / 0.5772 GB, free: 21.15 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.001664/0.001664, allocations: 96.36 kB / 0.6817 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008012/0.0008015, allocations: 12.25 kB / 0.7957 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.348, allocations: 106.3 MB / 0.8995 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.6974, allocations: 131.9 MB / 1.028 GB, free: 13.86 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000547/0.6981, allocations: 87.94 kB / 1.028 GB, free: 13.78 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.01193/0.71, allocations: 1.665 MB / 1.03 GB, free: 12.11 MB / 0.6824 GB Notification: Performance of FrontEnd: time 3.707e-06/0.7101, allocations: 0 / 1.03 GB, free: 12.11 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 2.079e-05/0.7101, allocations: 4 kB / 1.03 GB, free: 12.11 MB / 0.6824 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.0008316/0.711, allocations: 397 kB / 1.03 GB, free: 11.66 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 6.88e-05/0.7111, allocations: 8.031 kB / 1.03 GB, free: 11.65 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.665e-05/0.7112, allocations: 12.84 kB / 1.03 GB, free: 11.64 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004312/0.7116, allocations: 180.5 kB / 1.031 GB, free: 11.43 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.7117, allocations: 8.375 kB / 1.031 GB, free: 11.42 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.557e-05/0.7118, allocations: 4.375 kB / 1.031 GB, free: 11.41 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/0.7122, allocations: 70.17 kB / 1.031 GB, free: 11.34 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.7122, allocations: 4.188 kB / 1.031 GB, free: 11.34 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.7123, allocations: 7.875 kB / 1.031 GB, free: 11.33 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.7123, allocations: 0 / 1.031 GB, free: 11.33 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.7126, allocations: 47.97 kB / 1.031 GB, free: 11.28 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000905/0.7136, allocations: 288.8 kB / 1.031 GB, free: 10.95 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.7139, allocations: 70.5 kB / 1.031 GB, free: 10.87 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.7142, allocations: 64.89 kB / 1.031 GB, free: 10.8 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.7143, allocations: 0 / 1.031 GB, free: 10.8 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.7146, allocations: 118.6 kB / 1.031 GB, free: 10.67 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=11): time 3.447e-06/0.7147, allocations: 0 / 1.031 GB, free: 10.67 MB / 0.6824 GB Notification: Performance of matching and sorting (n=11): time 0.0009606/0.7157, allocations: 203.4 kB / 1.031 GB, free: 10.46 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.7158, allocations: 118.9 kB / 1.032 GB, free: 10.32 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.716, allocations: 109.8 kB / 1.032 GB, free: 10.2 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.7161, allocations: 33.7 kB / 1.032 GB, free: 10.16 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 9.712e-05/0.7162, allocations: 91.98 kB / 1.032 GB, free: 10.07 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/0.7163, allocations: 27.78 kB / 1.032 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.7164, allocations: 0 / 1.032 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.7166, allocations: 322.8 kB / 1.032 GB, free: 9.719 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.7168, allocations: 39.98 kB / 1.032 GB, free: 9.68 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.7172, allocations: 102.6 kB / 1.032 GB, free: 9.551 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.7175, allocations: 89.67 kB / 1.032 GB, free: 9.457 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.7176, allocations: 3.938 kB / 1.032 GB, free: 9.453 MB / 0.6824 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0008997/0.7185, allocations: 214.9 kB / 1.033 GB, free: 9.23 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 6.7e-05/0.7186, allocations: 33.7 kB / 1.033 GB, free: 9.191 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.7186, allocations: 3.984 kB / 1.033 GB, free: 9.188 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.182e-05/0.7187, allocations: 4 kB / 1.033 GB, free: 9.184 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.719, allocations: 20 kB / 1.033 GB, free: 9.164 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.549e-05/0.719, allocations: 11.92 kB / 1.033 GB, free: 9.152 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.7192, allocations: 12.28 kB / 1.033 GB, free: 9.141 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.7193, allocations: 8 kB / 1.033 GB, free: 9.133 MB / 0.6824 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.0003284/0.7196, allocations: 171.2 kB / 1.033 GB, free: 8.949 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.7197, allocations: 15.89 kB / 1.033 GB, free: 8.934 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.024e-05/0.7198, allocations: 8.375 kB / 1.033 GB, free: 8.922 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.7198, allocations: 0 / 1.033 GB, free: 8.922 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.7198, allocations: 0 / 1.033 GB, free: 8.922 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.7199, allocations: 4 kB / 1.033 GB, free: 8.918 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.7202, allocations: 193.5 kB / 1.033 GB, free: 8.68 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.7202, allocations: 3.938 kB / 1.033 GB, free: 8.676 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.7203, allocations: 7.984 kB / 1.033 GB, free: 8.668 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.7204, allocations: 3.938 kB / 1.033 GB, free: 8.664 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.7204, allocations: 4 kB / 1.033 GB, free: 8.66 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.7204, allocations: 0 / 1.033 GB, free: 8.66 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.7204, allocations: 0 / 1.033 GB, free: 8.66 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008741/0.7213, allocations: 230.9 kB / 1.033 GB, free: 8.41 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-05/0.7215, allocations: 85.02 kB / 1.033 GB, free: 8.309 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.472e-05/0.7216, allocations: 11.98 kB / 1.033 GB, free: 8.297 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.7218, allocations: 4 kB / 1.033 GB, free: 8.293 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.7219, allocations: 7.984 kB / 1.033 GB, free: 8.285 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.714e-05/0.7219, allocations: 4 kB / 1.033 GB, free: 8.281 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 0.0001048/0.7221, allocations: 83.28 kB / 1.033 GB, free: 8.199 MB / 0.6824 GB Notification: Performance of sort global known variables: time 8.62e-07/0.7221, allocations: 4 kB / 1.033 GB, free: 8.195 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0005955/0.7227, allocations: 24 kB / 1.033 GB, free: 8.172 MB / 0.6824 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.0002643/0.723, allocations: 121.2 kB / 1.034 GB, free: 8.047 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.0007775/0.7238, allocations: 167.8 kB / 1.034 GB, free: 7.871 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.7238, allocations: 4.062 kB / 1.034 GB, free: 7.867 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.0004767/0.7243, allocations: 191.3 kB / 1.034 GB, free: 7.668 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.7248, allocations: 11.94 kB / 1.034 GB, free: 7.656 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009038/0.7258, allocations: 194.4 kB / 1.034 GB, free: 7.438 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.7262, allocations: 0.6926 MB / 1.035 GB, free: 6.719 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 0.0001166/0.7264, allocations: 12.92 kB / 1.035 GB, free: 6.699 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.7265, allocations: 11.44 kB / 1.035 GB, free: 6.691 MB / 0.6824 GB Notification: Performance of SimCode: time 1.452e-06/0.7265, allocations: 0 / 1.035 GB, free: 6.691 MB / 0.6824 GB Notification: Performance of Templates: time 0.007025/0.7335, allocations: 0.8623 MB / 1.036 GB, free: 5.836 MB / 0.6824 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)