Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007971/0.0007971, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008861/0.0008861, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 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.8466/0.8466, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.751/1.751, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.926e-06/2.926e-06, allocations: 0 / 0.9998 GB, free: 13.4 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.841e-05/2.133e-05, allocations: 2.281 kB / 0.9998 GB, free: 13.39 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002297/0.002319, allocations: 1.899 MB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.00315, allocations: 0.7089 MB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.083e-05/0.003241, allocations: 3.938 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.099e-05/0.003282, allocations: 19.73 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 8.875e-05/0.003371, allocations: 51.52 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.003785, allocations: 179.6 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.004045, allocations: 334.9 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.004177, allocations: 40.84 kB / 1.003 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.004402, allocations: 203.5 kB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.004526, allocations: 111.7 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.004559, allocations: 31.94 kB / 1.003 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.747e-05/0.004617, allocations: 36 kB / 1.003 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.403e-05/0.004661, allocations: 79.77 kB / 1.003 GB, free: 9.695 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.819e-05/0.004729, allocations: 99.78 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.004997, allocations: 342.9 kB / 1.004 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.005, allocations: 4 kB / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.92e-07/0.005001, allocations: 0 / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.005006, allocations: 0 / 1.004 GB, free: 9.258 MB / 0.9636 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.0007558/0.005762, allocations: 0.5599 MB / 1.004 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.005802, allocations: 12.75 kB / 1.004 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.005849, allocations: 62.72 kB / 1.004 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.006022, allocations: 52.77 kB / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.006281, allocations: 198.7 kB / 1.005 GB, free: 8.32 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.006481, allocations: 499.6 kB / 1.005 GB, free: 7.719 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.006521, allocations: 32.38 kB / 1.005 GB, free: 7.688 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.006837, allocations: 259.1 kB / 1.005 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.006853, allocations: 4.141 kB / 1.005 GB, free: 7.422 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.006873, allocations: 15.94 kB / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.00688, allocations: 4 kB / 1.005 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.007144, allocations: 183.8 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007077/0.007852, allocations: 0.6832 MB / 1.006 GB, free: 6.488 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.008181, allocations: 203.7 kB / 1.006 GB, free: 6.262 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.008332, allocations: 122.5 kB / 1.007 GB, free: 6.133 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.008366, allocations: 15.98 kB / 1.007 GB, free: 6.117 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003238/0.008689, allocations: 312.5 kB / 1.007 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=48): time 1.583e-06/0.008691, allocations: 0 / 1.007 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of matching and sorting (n=48): time 0.0006568/0.009348, allocations: 481.5 kB / 1.007 GB, free: 5.312 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.009404, allocations: 122.8 kB / 1.007 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.00952, allocations: 191.4 kB / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.009547, allocations: 41.7 kB / 1.008 GB, free: 4.926 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.009601, allocations: 113.4 kB / 1.008 GB, free: 4.809 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.403e-05/0.009685, allocations: 154.8 kB / 1.008 GB, free: 4.656 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.326e-05/0.009779, allocations: 106.3 kB / 1.008 GB, free: 4.547 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.451e-05/0.009873, allocations: 346.7 kB / 1.008 GB, free: 4.199 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.01007, allocations: 149.2 kB / 1.009 GB, free: 4.051 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.01029, allocations: 248.8 kB / 1.009 GB, free: 3.773 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.01068, allocations: 402 kB / 1.009 GB, free: 3.344 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01068, allocations: 0 / 1.009 GB, free: 3.344 MB / 0.9636 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005016/0.01118, allocations: 489.2 kB / 1.01 GB, free: 2.859 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.0112, allocations: 8 kB / 1.01 GB, free: 2.852 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.01121, allocations: 7.938 kB / 1.01 GB, free: 2.844 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.01122, allocations: 4 kB / 1.01 GB, free: 2.84 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.01141, allocations: 99.81 kB / 1.01 GB, free: 2.742 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.01142, allocations: 4 kB / 1.01 GB, free: 2.738 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.01154, allocations: 59.7 kB / 1.01 GB, free: 2.68 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.01156, allocations: 20 kB / 1.01 GB, free: 2.66 MB / 0.9636 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.0001102/0.01167, allocations: 167.6 kB / 1.01 GB, free: 2.488 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.0117, allocations: 27.81 kB / 1.01 GB, free: 2.461 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.232e-05/0.01174, allocations: 33.91 kB / 1.01 GB, free: 2.422 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.01175, allocations: 8 kB / 1.01 GB, free: 2.414 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.01175, allocations: 7.938 kB / 1.01 GB, free: 2.406 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.01176, allocations: 3.984 kB / 1.01 GB, free: 2.402 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.01196, allocations: 276.6 kB / 1.01 GB, free: 2.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.01197, allocations: 4 kB / 1.01 GB, free: 2.086 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.01216, allocations: 71.91 kB / 1.01 GB, free: 2.016 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.01216, allocations: 4 kB / 1.01 GB, free: 2.012 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.01218, allocations: 23.86 kB / 1.01 GB, free: 1.988 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.01218, allocations: 4 kB / 1.01 GB, free: 1.984 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.01219, allocations: 0 / 1.01 GB, free: 1.984 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006474/0.01283, allocations: 0.5879 MB / 1.011 GB, free: 1.371 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.01286, allocations: 31.73 kB / 1.011 GB, free: 1.34 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.01288, allocations: 19.92 kB / 1.011 GB, free: 1.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.01299, allocations: 27.97 kB / 1.011 GB, free: 1.293 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-05/0.01308, allocations: 63.84 kB / 1.011 GB, free: 1.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.0131, allocations: 19.98 kB / 1.011 GB, free: 1.211 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.35e-05/0.01316, allocations: 124.4 kB / 1.011 GB, free: 1.09 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.01316, allocations: 4 kB / 1.011 GB, free: 1.086 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002123/0.01338, allocations: 80 kB / 1.011 GB, free: 1.008 MB / 0.9636 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.0008251/0.0142, allocations: 1.145 MB / 1.012 GB, free: 15.83 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.01463, allocations: 368.5 kB / 1.013 GB, free: 15.47 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01463, allocations: 0 / 1.013 GB, free: 15.47 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.01484, allocations: 181.1 kB / 1.013 GB, free: 15.29 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.01506, allocations: 48.53 kB / 1.013 GB, free: 15.25 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.01773, allocations: 3.168 MB / 1.016 GB, free: 11.91 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.752e-05/0.01782, allocations: 160.2 kB / 1.016 GB, free: 11.73 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 9.752e-05/0.01792, allocations: 38.95 kB / 1.016 GB, free: 11.69 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.01804, allocations: 92.47 kB / 1.016 GB, free: 11.6 MB / 0.9792 GB Notification: Performance of SimCode: time 7.82e-07/0.01804, allocations: 0 / 1.016 GB, free: 11.6 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.03593, allocations: 7.574 MB / 1.024 GB, free: 4.223 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.636/6.672, allocations: 13.16 kB / 1.024 GB, free: 4.215 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --stepSize=0.32 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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: 10.690726589411497]