Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009562/0.0009562, allocations: 77.97 kB / 20.68 MB, free: 3.809 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009509/0.0009509, allocations: 181.3 kB / 24.09 MB, free: 412 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9478/0.9478, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.782/1.782, allocations: 359 MB / 0.6055 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0.6562 kB / 0.7876 GB, free: 12.15 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.633e-05/1.816e-05, allocations: 3.094 kB / 0.7876 GB, free: 12.15 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002817/0.002835, allocations: 1.977 MB / 0.7896 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003946, allocations: 0.721 MB / 0.7903 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.004047, allocations: 0 / 0.7903 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.698e-05/0.004094, allocations: 23.62 kB / 0.7903 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.00422, allocations: 51.5 kB / 0.7903 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.004662, allocations: 179.6 kB / 0.7905 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003561/0.005018, allocations: 335 kB / 0.7908 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.005144, allocations: 32.92 kB / 0.7909 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.005436, allocations: 203.6 kB / 0.7911 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001633/0.0056, allocations: 115.6 kB / 0.7912 GB, free: 8.539 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.005651, allocations: 28.72 kB / 0.7912 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.342e-05/0.005725, allocations: 35.94 kB / 0.7912 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.07e-05/0.005785, allocations: 81.42 kB / 0.7913 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.939e-05/0.005875, allocations: 103.7 kB / 0.7914 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.006144, allocations: 239.2 kB / 0.7916 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.006146, allocations: 0 / 0.7916 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.11e-07/0.006147, allocations: 0 / 0.7916 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.006151, allocations: 0.6562 kB / 0.7916 GB, free: 8.062 MB / 0.7448 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.0008776/0.007029, allocations: 0.6636 MB / 0.7923 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.007072, allocations: 8.031 kB / 0.7923 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.007334, allocations: 77.83 kB / 0.7924 GB, free: 7.277 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.007581, allocations: 193.1 kB / 0.7925 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004379/0.008019, allocations: 499.7 kB / 0.793 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.008079, allocations: 25.56 kB / 0.793 GB, free: 6.441 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.008493, allocations: 220.2 kB / 0.7933 GB, free: 6.207 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.008512, allocations: 8.141 kB / 0.7933 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.008543, allocations: 17.52 kB / 0.7933 GB, free: 6.184 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.00856, allocations: 8 kB / 0.7933 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.008665, allocations: 77.17 kB / 0.7934 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.009251, allocations: 0.7451 MB / 0.7941 GB, free: 5.32 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.009449, allocations: 162 kB / 0.7942 GB, free: 5.125 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.941e-05/0.009518, allocations: 79.02 kB / 0.7943 GB, free: 5.035 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.009553, allocations: 16.81 kB / 0.7943 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.009763, allocations: 252.1 kB / 0.7946 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/0.009765, allocations: 224 / 0.7946 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0003793/0.01014, allocations: 343.7 kB / 0.7949 GB, free: 4.41 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.01019, allocations: 119.1 kB / 0.795 GB, free: 4.27 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.01029, allocations: 241.6 kB / 0.7952 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.01032, allocations: 37.7 kB / 0.7953 GB, free: 3.977 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.01038, allocations: 168 kB / 0.7954 GB, free: 3.805 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.01046, allocations: 159.5 kB / 0.7956 GB, free: 3.648 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.01056, allocations: 115.9 kB / 0.7957 GB, free: 3.527 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.01068, allocations: 0.5166 MB / 0.7962 GB, free: 3 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.055e-05/0.01075, allocations: 61.25 kB / 0.7963 GB, free: 2.941 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.01089, allocations: 206.7 kB / 0.7965 GB, free: 2.688 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.01112, allocations: 297.1 kB / 0.7967 GB, free: 2.348 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01112, allocations: 0 / 0.7967 GB, free: 2.348 MB / 0.7448 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0003301/0.01145, allocations: 365.3 kB / 0.7971 GB, free: 1.984 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.01146, allocations: 4.938 kB / 0.7971 GB, free: 1.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.01147, allocations: 4 kB / 0.7971 GB, free: 1.977 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.01149, allocations: 8 kB / 0.7971 GB, free: 1.969 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.01168, allocations: 94.05 kB / 0.7972 GB, free: 1.879 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.01169, allocations: 11.88 kB / 0.7972 GB, free: 1.867 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.0118, allocations: 59.7 kB / 0.7973 GB, free: 1.809 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.01182, allocations: 12 kB / 0.7973 GB, free: 1.797 MB / 0.7448 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 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.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.000105/0.01193, allocations: 205.6 kB / 0.7975 GB, free: 1.586 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.01197, allocations: 43.84 kB / 0.7975 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.012, allocations: 29.97 kB / 0.7975 GB, free: 1.52 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.01201, allocations: 8 kB / 0.7976 GB, free: 1.512 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.01201, allocations: 4.031 kB / 0.7976 GB, free: 1.508 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.01202, allocations: 11.91 kB / 0.7976 GB, free: 1.496 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.01218, allocations: 210.1 kB / 0.7978 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01218, allocations: 0 / 0.7978 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.01237, allocations: 71.89 kB / 0.7978 GB, free: 1.195 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.01237, allocations: 0.5625 kB / 0.7978 GB, free: 1.195 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.01239, allocations: 12.5 kB / 0.7979 GB, free: 1.184 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.01239, allocations: 4.562 kB / 0.7979 GB, free: 1.18 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01239, allocations: 0 / 0.7979 GB, free: 1.18 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.01283, allocations: 439.5 kB / 0.7983 GB, free: 0.7188 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.876e-05/0.01285, allocations: 29 kB / 0.7983 GB, free: 0.6914 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.01287, allocations: 11.98 kB / 0.7983 GB, free: 0.6797 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.01296, allocations: 33.31 kB / 0.7983 GB, free: 0.6484 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.01304, allocations: 63.91 kB / 0.7984 GB, free: 0.5859 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.01306, allocations: 15.98 kB / 0.7984 GB, free: 0.5703 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.37e-05/0.01312, allocations: 165.1 kB / 0.7986 GB, free: 420 kB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01312, allocations: 0 / 0.7986 GB, free: 420 kB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001853/0.0133, allocations: 80 kB / 0.7987 GB, free: 340 kB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.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 9.114e-05/0.01339, allocations: 125.9 kB / 0.7988 GB, free: 208 kB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.01365, allocations: 257.7 kB / 0.799 GB, free: 15.95 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.01365, allocations: 3.531 kB / 0.799 GB, free: 15.95 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.01377, allocations: 130.2 kB / 0.7991 GB, free: 15.82 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.01398, allocations: 51.95 kB / 0.7992 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000762/0.01474, allocations: 0.5592 MB / 0.7997 GB, free: 15.17 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.994e-05/0.01483, allocations: 97.55 kB / 0.7998 GB, free: 15.05 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 8.989e-05/0.01492, allocations: 42.58 kB / 0.7999 GB, free: 15.01 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.01506, allocations: 142.1 kB / 0.8 GB, free: 14.87 MB / 0.7605 GB Notification: Performance of SimCode: time 4.91e-07/0.01506, allocations: 0 / 0.8 GB, free: 14.87 MB / 0.7605 GB Notification: Performance of Templates: time 0.005528/0.02059, allocations: 4.366 MB / 0.8043 GB, free: 10.56 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.867920826654881]