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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001312/0.001312, allocations: 103.1 kB / 16.27 MB, free: 6.414 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.001333/0.001333, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 390.3 MB / 0.6653 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 66.8 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2736, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.004424/0.2781, allocations: 1.971 MB / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.2794, allocations: 0.6389 MB / 0.9528 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.2796, allocations: 8 kB / 0.9529 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.761e-05/0.2797, allocations: 23.67 kB / 0.9529 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.2799, allocations: 39.58 kB / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005588/0.2805, allocations: 151.7 kB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004256/0.2809, allocations: 315.2 kB / 0.9534 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.2811, allocations: 52.36 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.2814, allocations: 135.5 kB / 0.9535 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2816, allocations: 143.5 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.323e-05/0.2817, allocations: 32 kB / 0.9537 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.065e-05/0.2818, allocations: 28 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.2819, allocations: 83.72 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.282, allocations: 139.3 kB / 0.9539 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.2823, allocations: 299.3 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2823, allocations: 0 / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.664e-06/0.2824, allocations: 4 kB / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.424e-05/0.2824, allocations: 0 / 0.9542 GB, free: 4.812 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001359/0.2837, allocations: 0.6312 MB / 0.9548 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2838, allocations: 12.03 kB / 0.9549 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.2839, allocations: 36.56 kB / 0.9549 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.2841, allocations: 200.8 kB / 0.9551 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.2843, allocations: 260.3 kB / 0.9553 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-05/0.2844, allocations: 36.34 kB / 0.9554 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.2849, allocations: 257.9 kB / 0.9556 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.2849, allocations: 4 kB / 0.9556 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.285, allocations: 7.938 kB / 0.9556 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.285, allocations: 8 kB / 0.9556 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.2854, allocations: 179.8 kB / 0.9558 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.2866, allocations: 0.7736 MB / 0.9566 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.2871, allocations: 203.7 kB / 0.9568 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.2874, allocations: 134.5 kB / 0.9569 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-05/0.2874, allocations: 15.98 kB / 0.9569 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005377/0.288, allocations: 311.6 kB / 0.9572 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 2.324e-06/0.288, allocations: 0 / 0.9572 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.001035/0.289, allocations: 482.2 kB / 0.9577 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.2891, allocations: 118.8 kB / 0.9578 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.2893, allocations: 176.2 kB / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.2893, allocations: 45.7 kB / 0.958 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.2894, allocations: 113.3 kB / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.2896, allocations: 153.9 kB / 0.9582 GB, free: 400 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2897, allocations: 106.3 kB / 0.9583 GB, free: 288 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2899, allocations: 334.8 kB / 0.9587 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.2902, allocations: 149.2 kB / 0.9588 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.2906, allocations: 260.7 kB / 0.959 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006404/0.2912, allocations: 398.1 kB / 0.9594 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2912, allocations: 0 / 0.9594 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008671/0.2921, allocations: 496.8 kB / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.2921, allocations: 4 kB / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.2921, allocations: 4 kB / 0.9599 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.2922, allocations: 8 kB / 0.9599 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.2926, allocations: 107.7 kB / 0.96 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.2926, allocations: 4 kB / 0.96 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.2929, allocations: 51.66 kB / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.2929, allocations: 23.98 kB / 0.9601 GB, free: 14.39 MB / 0.7481 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.0001774/0.2931, allocations: 167.5 kB / 0.9603 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.677e-05/0.2932, allocations: 31.64 kB / 0.9603 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.172e-05/0.2933, allocations: 33.86 kB / 0.9603 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2933, allocations: 4 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.2933, allocations: 4 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2933, allocations: 0 / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/0.2937, allocations: 361.1 kB / 0.9607 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2937, allocations: 0 / 0.9607 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.2941, allocations: 75.83 kB / 0.9607 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.2941, allocations: 0 / 0.9607 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.2941, allocations: 23.98 kB / 0.9608 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2942, allocations: 0 / 0.9608 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2942, allocations: 4 kB / 0.9608 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.2952, allocations: 0.5862 MB / 0.9613 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.2953, allocations: 104.7 kB / 0.9614 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.2954, allocations: 8 kB / 0.9614 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.2956, allocations: 35.95 kB / 0.9615 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.2957, allocations: 35.95 kB / 0.9615 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.2958, allocations: 16.06 kB / 0.9615 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001/0.2959, allocations: 132.3 kB / 0.9617 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.1e-07/0.2959, allocations: 0 / 0.9617 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003343/0.2962, allocations: 76.09 kB / 0.9617 GB, free: 12.61 MB / 0.7481 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.0001906/0.2964, allocations: 130.9 kB / 0.9619 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008155/0.2972, allocations: 400.5 kB / 0.9622 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2972, allocations: 0 / 0.9622 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000353/0.2976, allocations: 189.3 kB / 0.9624 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.298, allocations: 46.59 kB / 0.9625 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.2992, allocations: 0.6393 MB / 0.9631 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.2995, allocations: 0.7723 MB / 0.9638 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.2997, allocations: 35.44 kB / 0.9639 GB, free: 10.35 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.2997, allocations: 4 kB / 0.9639 GB, free: 10.35 MB / 0.7481 GB Notification: Performance of Templates: time 0.00661/0.3063, allocations: 3.945 MB / 0.9677 GB, free: 6.426 MB / 0.7481 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