Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.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.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 196.4 kB / 16.79 MB, free: 6.809 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.423/1.423, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.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.408/2.408, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8053/0.8068, allocations: 140.3 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002877/0.8097, allocations: 2.021 MB / 0.9516 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008884/0.8107, allocations: 0.6461 MB / 0.9522 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.8107, allocations: 1.375 kB / 0.9522 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.918e-05/0.8108, allocations: 9.25 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.8109, allocations: 35.81 kB / 0.9522 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003679/0.8113, allocations: 126.1 kB / 0.9524 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.8115, allocations: 309.6 kB / 0.9527 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.8117, allocations: 55.09 kB / 0.9527 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.8119, allocations: 112.6 kB / 0.9528 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.812, allocations: 141.8 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.317e-05/0.8121, allocations: 16.84 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.731e-05/0.8121, allocations: 18.09 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.589e-05/0.8122, allocations: 71.34 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.8123, allocations: 132.9 kB / 0.9532 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.8125, allocations: 213.1 kB / 0.9534 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.8125, allocations: 0 / 0.9534 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.42e-07/0.8125, allocations: 0 / 0.9534 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.8125, allocations: 0 / 0.9534 GB, free: 6.215 MB / 0.7169 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.001139/0.8137, allocations: 0.6227 MB / 0.954 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.8137, allocations: 9.219 kB / 0.954 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.8138, allocations: 33.94 kB / 0.954 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.8139, allocations: 199.1 kB / 0.9542 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.8141, allocations: 266.8 kB / 0.9545 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.58e-05/0.8141, allocations: 31.47 kB / 0.9545 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.8146, allocations: 264 kB / 0.9548 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.8146, allocations: 1.438 kB / 0.9548 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.8147, allocations: 14.73 kB / 0.9548 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.8147, allocations: 4.438 kB / 0.9548 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.8151, allocations: 170 kB / 0.9549 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009468/0.8161, allocations: 0.7849 MB / 0.9557 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.8166, allocations: 210.3 kB / 0.9559 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.8168, allocations: 131.9 kB / 0.956 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.494e-05/0.8169, allocations: 5.938 kB / 0.956 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000555/0.8174, allocations: 326.1 kB / 0.9564 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 2.004e-06/0.8174, allocations: 0 / 0.9564 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009741/0.8184, allocations: 487.1 kB / 0.9568 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.8185, allocations: 118.2 kB / 0.9569 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.8186, allocations: 176.6 kB / 0.9571 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.8187, allocations: 43.08 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.005e-05/0.8187, allocations: 120.4 kB / 0.9573 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.8188, allocations: 143.5 kB / 0.9574 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.819, allocations: 110.3 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.8191, allocations: 340.3 kB / 0.9578 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.8194, allocations: 149.6 kB / 0.958 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.8198, allocations: 251 kB / 0.9582 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006402/0.8204, allocations: 394.4 kB / 0.9586 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.8205, allocations: 5.562 kB / 0.9586 GB, free: 2 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008376/0.8213, allocations: 490.1 kB / 0.9591 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.8213, allocations: 5.5 kB / 0.9591 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.8214, allocations: 6.75 kB / 0.9591 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.8214, allocations: 13.47 kB / 0.9591 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.8218, allocations: 97.92 kB / 0.9592 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.8218, allocations: 6.062 kB / 0.9592 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.8221, allocations: 56.62 kB / 0.9592 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.695e-05/0.8221, allocations: 20.28 kB / 0.9593 GB, free: 1.68 MB / 0.7169 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.0001664/0.8223, allocations: 164.5 kB / 0.9594 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.8224, allocations: 27.66 kB / 0.9594 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/0.8224, allocations: 30.75 kB / 0.9595 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.8225, allocations: 5.844 kB / 0.9595 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/0.8225, allocations: 5.109 kB / 0.9595 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.8225, allocations: 1.188 kB / 0.9595 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.8228, allocations: 356.3 kB / 0.9598 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.8229, allocations: 1.312 kB / 0.9598 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004195/0.8233, allocations: 82.27 kB / 0.9599 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.8233, allocations: 3.344 kB / 0.9599 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.8233, allocations: 12.34 kB / 0.9599 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.8233, allocations: 6.656 kB / 0.9599 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.8233, allocations: 5.031 kB / 0.9599 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.8244, allocations: 0.5703 MB / 0.9605 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.8244, allocations: 117.2 kB / 0.9606 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.8245, allocations: 12.47 kB / 0.9606 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.8247, allocations: 27.94 kB / 0.9606 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.8248, allocations: 39.56 kB / 0.9607 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.8248, allocations: 18.94 kB / 0.9607 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.775e-05/0.8249, allocations: 130.1 kB / 0.9608 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8249, allocations: 0 / 0.9608 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003489/0.8253, allocations: 78.69 kB / 0.9609 GB, free: 0.4961 MB / 0.7169 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 0.0001725/0.8255, allocations: 123.6 kB / 0.961 GB, free: 404 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000728/0.8262, allocations: 390.9 kB / 0.9614 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.8262, allocations: 0 / 0.9614 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.8266, allocations: 178 kB / 0.9615 GB, free: 172 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.8269, allocations: 46.91 kB / 0.9616 GB, free: 144 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.8282, allocations: 0.7262 MB / 0.9623 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.8286, allocations: 0.7613 MB / 0.963 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.8287, allocations: 34.55 kB / 0.9631 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of SimCode: time 6.91e-07/0.8287, allocations: 1.156 kB / 0.9631 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of Templates: time 0.006956/0.8357, allocations: 3.949 MB / 0.9669 GB, free: 12.79 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time