Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.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.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 105.3 kB / 16.36 MB, free: 6.305 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.001051/0.001051, allocations: 192.1 kB / 17.29 MB, free: 5.875 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.451/1.451, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.806/1.806, allocations: 292.3 MB / 0.5496 GB, free: 17.46 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.001453/0.001453, allocations: 74.25 kB / 0.6729 GB, free: 5.805 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2137, allocations: 114.5 MB / 0.7848 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean): time 0.003458/0.2172, allocations: 1.962 MB / 0.7867 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2187, allocations: 0.6943 MB / 0.7874 GB, free: 472 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.2189, allocations: 4 kB / 0.7874 GB, free: 468 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 9.558e-05/0.2191, allocations: 19.69 kB / 0.7874 GB, free: 448 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000204/0.2194, allocations: 43.56 kB / 0.7875 GB, free: 404 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.2199, allocations: 151.7 kB / 0.7876 GB, free: 252 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3817/0.6016, allocations: 324.9 kB / 0.7879 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.6019, allocations: 42.83 kB / 0.788 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.6022, allocations: 128.8 kB / 0.7881 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.6024, allocations: 153.3 kB / 0.7882 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.47e-05/0.6025, allocations: 33.19 kB / 0.7883 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.6025, allocations: 29.84 kB / 0.7883 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.105e-05/0.6026, allocations: 72.19 kB / 0.7883 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.6027, allocations: 135.9 kB / 0.7885 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002986/0.603, allocations: 304.8 kB / 0.7888 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.603, allocations: 3.969 kB / 0.7888 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.733e-06/0.603, allocations: 0 / 0.7888 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.6031, allocations: 2.906 kB / 0.7888 GB, free: 46.45 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001089/0.6042, allocations: 0.6237 MB / 0.7894 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.6042, allocations: 7.875 kB / 0.7894 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.156e-05/0.6043, allocations: 38.95 kB / 0.7894 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.6044, allocations: 195.2 kB / 0.7896 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.6046, allocations: 266.7 kB / 0.7899 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.6046, allocations: 34.25 kB / 0.7899 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.6051, allocations: 265.4 kB / 0.7902 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.6051, allocations: 1.938 kB / 0.7902 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.6051, allocations: 12.12 kB / 0.7902 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.6051, allocations: 6.094 kB / 0.7902 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003835/0.6055, allocations: 175.3 kB / 0.7903 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009357/0.6065, allocations: 0.7845 MB / 0.7911 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.6069, allocations: 197.9 kB / 0.7913 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.6072, allocations: 137.2 kB / 0.7914 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.6072, allocations: 10.06 kB / 0.7914 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004579/0.6077, allocations: 309.8 kB / 0.7917 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.174e-06/0.6077, allocations: 2.625 kB / 0.7917 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.0009288/0.6086, allocations: 483.4 kB / 0.7922 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.6087, allocations: 122.4 kB / 0.7923 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.6088, allocations: 171.2 kB / 0.7925 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.6089, allocations: 40.3 kB / 0.7925 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.6089, allocations: 124.5 kB / 0.7926 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.015e-05/0.609, allocations: 148.2 kB / 0.7928 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.6091, allocations: 105.4 kB / 0.7929 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.709e-05/0.6092, allocations: 343.5 kB / 0.7932 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.6095, allocations: 146 kB / 0.7933 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.6098, allocations: 260.6 kB / 0.7936 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005242/0.6103, allocations: 393.1 kB / 0.794 GB, free: 43.81 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.6103, allocations: 0 / 0.794 GB, free: 43.81 MB / 0.6544 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007472/0.6111, allocations: 491.6 kB / 0.7944 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.6111, allocations: 10.84 kB / 0.7944 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.6111, allocations: 5.938 kB / 0.7945 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.6112, allocations: 3.375 kB / 0.7945 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.6115, allocations: 98.88 kB / 0.7945 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.6115, allocations: 11.31 kB / 0.7946 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.6118, allocations: 60.39 kB / 0.7946 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.6119, allocations: 20.66 kB / 0.7946 GB, free: 43.75 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movingMean_1.mode,$PRE.movingMean_1.mode,$whenCondition5,movingMean_2.mode,$PRE.movingMean_2.mode,$whenCondition6,movingMean_3.mode,$PRE.movingMean_3.mode,$whenCondition7,movingMean_4.mode,$PRE.movingMean_4.mode,$whenCondition8,movingMean_5.mode,$PRE.movingMean_5.mode,$whenCondition9,movingMean_6.mode,$PRE.movingMean_6.mode,$whenCondition3,movingMean_7.mode,$PRE.movingMean_7.mode,$whenCondition4,movingMean_8.mode,$PRE.movingMean_8.mode,$whenCondition1,movingMean_9.mode,$PRE.movingMean_9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.0001459/0.612, allocations: 161.2 kB / 0.7948 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.6121, allocations: 26.44 kB / 0.7948 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.008e-05/0.6121, allocations: 33.03 kB / 0.7948 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.6121, allocations: 5.719 kB / 0.7949 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.6122, allocations: 0 / 0.7949 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.6122, allocations: 10.77 kB / 0.7949 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.6125, allocations: 358.9 kB / 0.7952 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6125, allocations: 0 / 0.7952 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.6129, allocations: 69.72 kB / 0.7953 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.6129, allocations: 7.875 kB / 0.7953 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.6129, allocations: 16.66 kB / 0.7953 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.6129, allocations: 3.188 kB / 0.7953 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6129, allocations: 4.719 kB / 0.7953 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009335/0.6139, allocations: 0.5873 MB / 0.7959 GB, free: 43.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.6139, allocations: 110.9 kB / 0.796 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.614, allocations: 10.09 kB / 0.796 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.6142, allocations: 30.83 kB / 0.796 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6143, allocations: 41.39 kB / 0.7961 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.6143, allocations: 16.61 kB / 0.7961 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.117e-05/0.6144, allocations: 125.2 kB / 0.7962 GB, free: 43.1 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6144, allocations: 0.625 kB / 0.7962 GB, free: 43.1 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003404/0.6148, allocations: 78.84 kB / 0.7963 GB, free: 43.1 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0001633/0.6149, allocations: 127 kB / 0.7964 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006921/0.6156, allocations: 380.5 kB / 0.7968 GB, free: 43 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.6157, allocations: 0 / 0.7968 GB, free: 43 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003187/0.616, allocations: 185.3 kB / 0.7969 GB, free: 43 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.6163, allocations: 51.84 kB / 0.797 GB, free: 42.99 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.6174, allocations: 0.6283 MB / 0.7976 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.6176, allocations: 0.7648 MB / 0.7983 GB, free: 41.95 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.6177, allocations: 37.72 kB / 0.7984 GB, free: 41.95 MB / 0.6544 GB Notification: Performance of SimCode: time 4.41e-07/0.6177, allocations: 0 / 0.7984 GB, free: 41.95 MB / 0.6544 GB Notification: Performance of Templates: time 0.007655/0.6254, allocations: 3.971 MB / 0.8023 GB, free: 41.74 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1)