Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 117.6 kB / 16.37 MB, free: 6.016 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.001465/0.001465, allocations: 189.7 kB / 17.3 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002393, allocations: 64.8 kB / 0.814 GB, free: 32.54 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.307, allocations: 140.4 MB / 0.9512 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002677/0.3097, allocations: 1.397 MB / 0.9525 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005844/0.3103, allocations: 275.1 kB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.029e-05/0.3104, allocations: 4 kB / 0.9528 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.56e-05/0.3105, allocations: 3.938 kB / 0.9528 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.3106, allocations: 15.92 kB / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.3108, allocations: 35.83 kB / 0.9528 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.311, allocations: 67.8 kB / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.3111, allocations: 7.984 kB / 0.9529 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.718e-05/0.3112, allocations: 31.91 kB / 0.9529 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.3113, allocations: 31.91 kB / 0.953 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.3113, allocations: 4 kB / 0.953 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.348e-05/0.3114, allocations: 4 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.3114, allocations: 11.94 kB / 0.953 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.086e-05/0.3115, allocations: 31.84 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.3116, allocations: 51.8 kB / 0.9531 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3116, allocations: 7.938 kB / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.694e-06/0.3116, allocations: 0 / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3116, allocations: 0 / 0.9531 GB, free: 6.066 MB / 0.7325 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.0005289/0.3122, allocations: 401 kB / 0.9535 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.3122, allocations: 8.031 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.3123, allocations: 8.844 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.3124, allocations: 180.2 kB / 0.9536 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.3124, allocations: 12.36 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3125, allocations: 4.375 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.3126, allocations: 70.17 kB / 0.9537 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.3126, allocations: 192 / 0.9537 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.3127, allocations: 3.938 kB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3127, allocations: 11.94 kB / 0.9537 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.3128, allocations: 39.91 kB / 0.9538 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.3132, allocations: 288.9 kB / 0.9541 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.3133, allocations: 70.5 kB / 0.9541 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.814e-05/0.3134, allocations: 52.89 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3135, allocations: 4 kB / 0.9542 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.3136, allocations: 121.1 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.3137, allocations: 0 / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003935/0.3141, allocations: 191.3 kB / 0.9545 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.3142, allocations: 118.7 kB / 0.9546 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.3142, allocations: 109.8 kB / 0.9547 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3143, allocations: 37.7 kB / 0.9547 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.3143, allocations: 88.08 kB / 0.9548 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.3144, allocations: 27.64 kB / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.3144, allocations: 33.72 kB / 0.9549 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3146, allocations: 322.8 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.838e-05/0.3147, allocations: 39.91 kB / 0.9552 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.3148, allocations: 110.4 kB / 0.9553 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.315, allocations: 211.8 kB / 0.9555 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3151, allocations: 3.938 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003105/0.3154, allocations: 199.1 kB / 0.9557 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.3154, allocations: 33.7 kB / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3154, allocations: 4.25 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3154, allocations: 7.984 kB / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3156, allocations: 20 kB / 0.9558 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3156, allocations: 7.922 kB / 0.9558 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.349e-05/0.3157, allocations: 15.91 kB / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.3157, allocations: 8.266 kB / 0.9558 GB, free: 2.918 MB / 0.7325 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.3158, allocations: 181.4 kB / 0.956 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.3159, allocations: 11.91 kB / 0.956 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.427e-05/0.3159, allocations: 12.45 kB / 0.956 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3159, allocations: 3.984 kB / 0.956 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3159, allocations: 3.938 kB / 0.956 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3159, allocations: 0 / 0.956 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.316, allocations: 185.6 kB / 0.9562 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3161, allocations: 4 kB / 0.9562 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.388e-05/0.3161, allocations: 11.92 kB / 0.9562 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3161, allocations: 0 / 0.9562 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3161, allocations: 4 kB / 0.9562 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3161, allocations: 0 / 0.9562 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3161, allocations: 3.938 kB / 0.9562 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.3165, allocations: 222.6 kB / 0.9564 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.3165, allocations: 85.02 kB / 0.9565 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.3166, allocations: 19.98 kB / 0.9565 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.194e-05/0.3166, allocations: 4 kB / 0.9565 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.3167, allocations: 0 / 0.9565 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.3167, allocations: 11.98 kB / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.139e-05/0.3167, allocations: 83.28 kB / 0.9566 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3168, allocations: 3.938 kB / 0.9566 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002338/0.317, allocations: 24 kB / 0.9566 GB, free: 1.953 MB / 0.7325 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 (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.0001247/0.3171, allocations: 122.2 kB / 0.9568 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002995/0.3174, allocations: 163.3 kB / 0.9569 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3174, allocations: 0 / 0.9569 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.3176, allocations: 187.3 kB / 0.9571 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.3178, allocations: 12.5 kB / 0.9571 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.3182, allocations: 191.1 kB / 0.9573 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.3185, allocations: 0.6885 MB / 0.958 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.459e-05/0.3185, allocations: 4.672 kB / 0.958 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.3185, allocations: 11.44 kB / 0.958 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.3185, allocations: 0 / 0.958 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of Templates: time 0.003156/0.3217, allocations: 0.9748 MB / 0.9589 GB, free: 15.53 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches