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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.557/1.557, allocations: 289.9 MB / 297.4 MB, free: 6.352 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 176.8 kB / 366.7 MB, free: 1.648 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.3 MB / 0.626 GB, free: 7.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008645/0.0008645, allocations: 95.23 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.562e-05/1.59e-05, allocations: 0 / 0.8597 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6122/0.6122, allocations: 116.3 MB / 0.9733 GB, free: 76.2 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1905/0.8028, allocations: 138.5 MB / 1.109 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.803, allocations: 79.94 kB / 1.109 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.004057/0.8071, allocations: 1.615 MB / 1.11 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8071, allocations: 0 / 1.11 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.8071, allocations: 0.8125 kB / 1.11 GB, free: 10.03 MB / 0.7136 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.0003687/0.8075, allocations: 385.1 kB / 1.111 GB, free: 9.602 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.8075, allocations: 8.031 kB / 1.111 GB, free: 9.594 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.347e-05/0.8076, allocations: 8.562 kB / 1.111 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.8078, allocations: 187.7 kB / 1.111 GB, free: 9.363 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.8078, allocations: 0 / 1.111 GB, free: 9.363 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.8078, allocations: 5.719 kB / 1.111 GB, free: 9.359 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.673e-05/0.8079, allocations: 31.92 kB / 1.111 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.8081, allocations: 66.3 kB / 1.111 GB, free: 9.258 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.8081, allocations: 0.9688 kB / 1.111 GB, free: 9.258 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.8081, allocations: 0 / 1.111 GB, free: 9.258 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.8081, allocations: 0 / 1.111 GB, free: 9.258 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005153/0.8086, allocations: 267.5 kB / 1.111 GB, free: 8.961 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.8088, allocations: 63.69 kB / 1.111 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.8089, allocations: 55.45 kB / 1.111 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.8089, allocations: 0.9688 kB / 1.111 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.8091, allocations: 119 kB / 1.111 GB, free: 8.703 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.914e-06/0.8092, allocations: 1.312 kB / 1.111 GB, free: 8.703 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0003114/0.8095, allocations: 108 kB / 1.111 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.849e-05/0.8096, allocations: 118.8 kB / 1.112 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.611e-05/0.8097, allocations: 97.62 kB / 1.112 GB, free: 8.352 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.8097, allocations: 30.2 kB / 1.112 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.8098, allocations: 95.97 kB / 1.112 GB, free: 8.223 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.8098, allocations: 23.75 kB / 1.112 GB, free: 8.199 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-06/0.8099, allocations: 0 / 1.112 GB, free: 8.199 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.81, allocations: 323.3 kB / 1.112 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.171e-05/0.8101, allocations: 37.39 kB / 1.112 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.8103, allocations: 89.89 kB / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.8104, allocations: 51.47 kB / 1.112 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.8104, allocations: 0 / 1.112 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003516/0.8108, allocations: 150.6 kB / 1.112 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.8108, allocations: 33.7 kB / 1.112 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.8108, allocations: 3.156 kB / 1.112 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.8109, allocations: 4 kB / 1.112 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.811, allocations: 30.33 kB / 1.112 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.8111, allocations: 0 / 1.112 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.8112, allocations: 11.98 kB / 1.112 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.8112, allocations: 16.05 kB / 1.112 GB, free: 7.43 MB / 0.7136 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 () * 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.0001613/0.8114, allocations: 168.7 kB / 1.113 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.8114, allocations: 11.91 kB / 1.113 GB, free: 7.242 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.469e-05/0.8115, allocations: 8.562 kB / 1.113 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8115, allocations: 0 / 1.113 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.8115, allocations: 0 / 1.113 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.8115, allocations: 0 / 1.113 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.8117, allocations: 162.1 kB / 1.113 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8117, allocations: 0 / 1.113 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.656e-05/0.8118, allocations: 7.984 kB / 1.113 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.8118, allocations: 4 kB / 1.113 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.8118, allocations: 8 kB / 1.113 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8118, allocations: 0 / 1.113 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8118, allocations: 0 / 1.113 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003349/0.8122, allocations: 168.9 kB / 1.113 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.8122, allocations: 81.02 kB / 1.113 GB, free: 6.738 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.8123, allocations: 8.938 kB / 1.113 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.8124, allocations: 7.984 kB / 1.113 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.8125, allocations: 8 kB / 1.113 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.8125, allocations: 7.938 kB / 1.113 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.739e-05/0.8125, allocations: 89.61 kB / 1.113 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8126, allocations: 0 / 1.113 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003634/0.8129, allocations: 16 kB / 1.113 GB, free: 6.605 MB / 0.7136 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) * 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.0001481/0.8131, allocations: 112.3 kB / 1.113 GB, free: 6.488 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002908/0.8134, allocations: 155.2 kB / 1.113 GB, free: 6.324 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.8134, allocations: 3.844 kB / 1.113 GB, free: 6.324 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.8136, allocations: 175.4 kB / 1.114 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.8139, allocations: 15.95 kB / 1.114 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.8142, allocations: 106.5 kB / 1.114 GB, free: 6 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.8145, allocations: 0.6968 MB / 1.114 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.553e-05/0.8146, allocations: 12.67 kB / 1.114 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.8146, allocations: 11.44 kB / 1.114 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of SimCode: time 4.11e-07/0.8146, allocations: 0 / 1.114 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of Templates: time 0.003179/0.8178, allocations: 0.8484 MB / 1.115 GB, free: 4.449 MB / 0.7136 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)