Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.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.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.779/1.779, allocations: 292.3 MB / 308.1 MB, free: 4.277 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.001628/0.001628, allocations: 190.4 kB / 376.9 MB, free: 1.809 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.998/1.998, allocations: 205.1 MB / 0.6354 GB, free: 9.789 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.001268/0.001268, allocations: 100.3 kB / 0.748 GB, free: 61.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.92 kB / 0.8704 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2983, allocations: 114.5 MB / 0.9822 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart): time 0.004133/0.3025, allocations: 2.02 MB / 0.9842 GB, free: 8.305 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3041, allocations: 0.6865 MB / 0.9849 GB, free: 7.609 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.3042, allocations: 0 / 0.9849 GB, free: 7.609 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 6.4e-05/0.3043, allocations: 7.875 kB / 0.9849 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.3045, allocations: 39.62 kB / 0.9849 GB, free: 7.562 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.3049, allocations: 131.9 kB / 0.9851 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003214/0.3053, allocations: 307.1 kB / 0.9853 GB, free: 7.133 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.3054, allocations: 48.31 kB / 0.9854 GB, free: 7.082 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.3056, allocations: 123.6 kB / 0.9855 GB, free: 6.961 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.3058, allocations: 139.5 kB / 0.9856 GB, free: 6.824 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.3059, allocations: 16 kB / 0.9857 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 4.334e-05/0.3059, allocations: 20 kB / 0.9857 GB, free: 6.789 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.306, allocations: 67.72 kB / 0.9857 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.3061, allocations: 123.4 kB / 0.9859 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.3065, allocations: 291.3 kB / 0.9861 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.892e-06/0.3065, allocations: 0 / 0.9861 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3065, allocations: 3.938 kB / 0.9861 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3065, allocations: 0 / 0.9861 GB, free: 6.312 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001273/0.3078, allocations: 0.6198 MB / 0.9868 GB, free: 5.645 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3078, allocations: 12.03 kB / 0.9868 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.3079, allocations: 32.64 kB / 0.9868 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.3081, allocations: 204.7 kB / 0.987 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.3083, allocations: 268.3 kB / 0.9872 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.779e-05/0.3084, allocations: 32.27 kB / 0.9873 GB, free: 5.016 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.3089, allocations: 257.9 kB / 0.9875 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.3089, allocations: 11.92 kB / 0.9875 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.3089, allocations: 8 kB / 0.9875 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.309, allocations: 4 kB / 0.9875 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004435/0.3094, allocations: 179.8 kB / 0.9877 GB, free: 4.551 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.3105, allocations: 0.7698 MB / 0.9885 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.311, allocations: 211.7 kB / 0.9887 GB, free: 3.488 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.3113, allocations: 130.5 kB / 0.9888 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.3114, allocations: 11.98 kB / 0.9888 GB, free: 3.34 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005886/0.3119, allocations: 315.6 kB / 0.9891 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.655e-06/0.312, allocations: 4 kB / 0.9891 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0009963/0.313, allocations: 473.5 kB / 0.9896 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.236e-05/0.3131, allocations: 122.7 kB / 0.9897 GB, free: 2.391 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3132, allocations: 179.4 kB / 0.9898 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/0.3133, allocations: 41.7 kB / 0.9899 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3134, allocations: 117.2 kB / 0.99 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.3135, allocations: 145.9 kB / 0.9901 GB, free: 1.898 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3137, allocations: 106.3 kB / 0.9902 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3139, allocations: 342.8 kB / 0.9906 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.3142, allocations: 149.2 kB / 0.9907 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.3146, allocations: 252.7 kB / 0.991 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005996/0.3152, allocations: 394.1 kB / 0.9913 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3152, allocations: 4 kB / 0.9913 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007922/0.316, allocations: 492.9 kB / 0.9918 GB, free: 104 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.316, allocations: 8 kB / 0.9918 GB, free: 96 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.316, allocations: 7.938 kB / 0.9918 GB, free: 88 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.3161, allocations: 8 kB / 0.9918 GB, free: 80 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.3165, allocations: 91.88 kB / 0.9919 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.3165, allocations: 8 kB / 0.9919 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.3167, allocations: 59.55 kB / 0.992 GB, free: 15.92 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.3168, allocations: 23.98 kB / 0.992 GB, free: 15.9 MB / 0.7292 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.0001705/0.317, allocations: 160 kB / 0.9922 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.317, allocations: 27.66 kB / 0.9922 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.076e-05/0.3171, allocations: 33.86 kB / 0.9922 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.3171, allocations: 8 kB / 0.9922 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3171, allocations: 0 / 0.9922 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3171, allocations: 0 / 0.9922 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.3176, allocations: 361.1 kB / 0.9926 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3176, allocations: 0 / 0.9926 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.318, allocations: 79.83 kB / 0.9926 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.318, allocations: 8 kB / 0.9926 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.318, allocations: 16.06 kB / 0.9927 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.812e-06/0.318, allocations: 7.984 kB / 0.9927 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.318, allocations: 3.938 kB / 0.9927 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.3208, allocations: 2.008 MB / 0.9946 GB, free: 13 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.944e-05/0.3209, allocations: 100.8 kB / 0.9947 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.3209, allocations: 11.98 kB / 0.9947 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.3211, allocations: 32.25 kB / 0.9948 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.3213, allocations: 59.92 kB / 0.9948 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3213, allocations: 12 kB / 0.9948 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001236/0.3215, allocations: 136 kB / 0.995 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3215, allocations: 0 / 0.995 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004202/0.3219, allocations: 95.84 kB / 0.9951 GB, free: 12.54 MB / 0.7292 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.000238/0.3221, allocations: 122.4 kB / 0.9952 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007177/0.3229, allocations: 381.1 kB / 0.9955 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3229, allocations: 112 / 0.9955 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003876/0.3233, allocations: 208.9 kB / 0.9957 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.3236, allocations: 31.98 kB / 0.9958 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.3251, allocations: 0.9706 MB / 0.9967 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.3254, allocations: 0.7725 MB / 0.9975 GB, free: 10 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001817/0.3256, allocations: 38.97 kB / 0.9975 GB, free: 9.961 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.3257, allocations: 39.42 kB / 0.9975 GB, free: 9.922 MB / 0.7292 GB Notification: Performance of SimCode: time 6.91e-07/0.3257, allocations: 3.938 kB / 0.9976 GB, free: 9.918 MB / 0.7292 GB Notification: Performance of Templates: time 0.00824/0.334, allocations: 3.733 MB / 1.001 GB, free: 6.207 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe 2>&1)