Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.001891/0.001891, allocations: 74.58 kB / 19.18 MB, free: 2.539 MB / 14.72 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.002392/0.002392, allocations: 168.7 kB / 22.46 MB, free: 5.348 MB / 14.72 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 1.502/1.502, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.882/2.882, allocations: 377.8 MB / 0.6221 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 0 / 0.9815 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/3.268e-05, allocations: 2.281 kB / 0.9815 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002696/0.002729, allocations: 1.029 MB / 0.9825 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001881/0.00461, allocations: 1.143 MB / 0.9836 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.004733, allocations: 4 kB / 0.9836 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.493e-05/0.004798, allocations: 19.73 kB / 0.9837 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.004942, allocations: 39.53 kB / 0.9837 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005527/0.005494, allocations: 155.6 kB / 0.9838 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.005955, allocations: 331 kB / 0.9842 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.006122, allocations: 40.45 kB / 0.9842 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.006604, allocations: 207.5 kB / 0.9844 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.00686, allocations: 119.6 kB / 0.9845 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.59e-05/0.006936, allocations: 35.94 kB / 0.9845 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.007039, allocations: 32 kB / 0.9846 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.00712, allocations: 75.77 kB / 0.9846 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.007247, allocations: 99.77 kB / 0.9847 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004628/0.00771, allocations: 339 kB / 0.9851 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.007717, allocations: 4 kB / 0.9851 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/0.007718, allocations: 0 / 0.9851 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.298e-05/0.007731, allocations: 0 / 0.9851 GB, free: 8.203 MB / 0.9356 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.001378/0.009109, allocations: 0.5521 MB / 0.9856 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.009148, allocations: 16.03 kB / 0.9856 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000362/0.00951, allocations: 52.77 kB / 0.9857 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.00966, allocations: 146.2 kB / 0.9858 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000402/0.01006, allocations: 0.4919 MB / 0.9863 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.01013, allocations: 28.33 kB / 0.9863 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005512/0.01068, allocations: 259.1 kB / 0.9866 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.0107, allocations: 4.188 kB / 0.9866 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.01073, allocations: 4.375 kB / 0.9866 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.01074, allocations: 12.12 kB / 0.9866 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004747/0.01122, allocations: 183.8 kB / 0.9868 GB, free: 6.285 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.01245, allocations: 0.6486 MB / 0.9874 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.01297, allocations: 199.9 kB / 0.9876 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.01325, allocations: 130.5 kB / 0.9877 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.0133, allocations: 11.94 kB / 0.9877 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006495/0.01395, allocations: 308.2 kB / 0.988 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.275e-06/0.01395, allocations: 0 / 0.988 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001152/0.0151, allocations: 499.8 kB / 0.9885 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.01521, allocations: 115.2 kB / 0.9886 GB, free: 4.273 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.01541, allocations: 176.1 kB / 0.9888 GB, free: 4.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.461e-05/0.01546, allocations: 41.7 kB / 0.9888 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.91e-05/0.01556, allocations: 125.3 kB / 0.9889 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.01571, allocations: 150.8 kB / 0.9891 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.01587, allocations: 102.3 kB / 0.9892 GB, free: 3.664 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.01604, allocations: 342.8 kB / 0.9895 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/0.01637, allocations: 145.2 kB / 0.9896 GB, free: 3.18 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004165/0.01678, allocations: 256.8 kB / 0.9899 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007194/0.0175, allocations: 398 kB / 0.9903 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.01751, allocations: 0 / 0.9903 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009902/0.0185, allocations: 489 kB / 0.9907 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.01852, allocations: 11.98 kB / 0.9907 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.01853, allocations: 4 kB / 0.9907 GB, free: 1.965 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.01855, allocations: 7.938 kB / 0.9907 GB, free: 1.957 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/0.01897, allocations: 99.83 kB / 0.9908 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/0.01899, allocations: 12.58 kB / 0.9909 GB, free: 1.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.0193, allocations: 55.75 kB / 0.9909 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.533e-05/0.01935, allocations: 20 kB / 0.9909 GB, free: 1.773 MB / 0.9356 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.0002339/0.01959, allocations: 163.7 kB / 0.9911 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.987e-05/0.01965, allocations: 27.81 kB / 0.9911 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.507e-05/0.01973, allocations: 37.95 kB / 0.9911 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.01974, allocations: 4 kB / 0.9911 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.01975, allocations: 4 kB / 0.9912 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.01976, allocations: 3.938 kB / 0.9912 GB, free: 1.523 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/0.02011, allocations: 233.1 kB / 0.9914 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.02012, allocations: 8 kB / 0.9914 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.02056, allocations: 75.89 kB / 0.9915 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.02056, allocations: 0 / 0.9915 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.02061, allocations: 11.98 kB / 0.9915 GB, free: 1.172 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.259e-06/0.02061, allocations: 4 kB / 0.9915 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.02061, allocations: 4 kB / 0.9915 GB, free: 1.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.02183, allocations: 0.5877 MB / 0.992 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.02187, allocations: 27.75 kB / 0.9921 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.465e-05/0.02192, allocations: 8 kB / 0.9921 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.02217, allocations: 39.89 kB / 0.9921 GB, free: 492 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.02232, allocations: 63.84 kB / 0.9922 GB, free: 428 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.02236, allocations: 16 kB / 0.9922 GB, free: 412 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001158/0.02248, allocations: 125.2 kB / 0.9923 GB, free: 288 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.02248, allocations: 0 / 0.9923 GB, free: 288 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003628/0.02284, allocations: 83.94 kB / 0.9924 GB, free: 204 kB / 0.9356 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.0001895/0.02303, allocations: 114.4 kB / 0.9925 GB, free: 80 kB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008738/0.02391, allocations: 375.2 kB / 0.9929 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.02391, allocations: 0 / 0.9929 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004214/0.02433, allocations: 182 kB / 0.993 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.02468, allocations: 40.05 kB / 0.9931 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.02594, allocations: 0.5795 MB / 0.9936 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.0261, allocations: 156.2 kB / 0.9938 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000149/0.02625, allocations: 43.22 kB / 0.9938 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.02637, allocations: 36.5 kB / 0.9939 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.02637, allocations: 0 / 0.9939 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of Templates: time 0.009591/0.03596, allocations: 4.005 MB / 0.9978 GB, free: 10.7 MB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.498677752912045]