Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007904/0.0007904, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008956/0.0008956, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8796/0.8796, allocations: 177.1 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.791/1.791, allocations: 389 MB / 0.633 GB, free: 12.68 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,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 0.9997 GB, free: 13.41 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.477e-05, allocations: 8.75 kB / 0.9998 GB, free: 13.4 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001759/0.001784, allocations: 1.026 MB / 1.001 GB, free: 12.38 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.002858, allocations: 1.132 MB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.23e-05/0.002921, allocations: 0 / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/0.002959, allocations: 19.69 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 8.249e-05/0.003042, allocations: 47.58 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.003408, allocations: 159.6 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000226/0.003634, allocations: 331 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.003763, allocations: 40.5 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.003999, allocations: 199.6 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.004133, allocations: 115.6 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.004169, allocations: 32 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.83e-05/0.004238, allocations: 39.98 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.378e-05/0.004282, allocations: 75.78 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.509e-05/0.004347, allocations: 91.78 kB / 1.003 GB, free: 10.1 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.004617, allocations: 350.9 kB / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.004619, allocations: 0 / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.212e-06/0.00462, allocations: 0 / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.004625, allocations: 4 kB / 1.003 GB, free: 9.754 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.0007291/0.005354, allocations: 0.5521 MB / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.005395, allocations: 8.75 kB / 1.004 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.00544, allocations: 62.66 kB / 1.004 GB, free: 9.09 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.005626, allocations: 60.72 kB / 1.004 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.313e-05/0.00572, allocations: 146.3 kB / 1.004 GB, free: 8.859 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.005928, allocations: 495.7 kB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.005967, allocations: 28.38 kB / 1.005 GB, free: 8.238 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.006297, allocations: 263.1 kB / 1.005 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.006313, allocations: 4.141 kB / 1.005 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.006333, allocations: 16.38 kB / 1.005 GB, free: 7.949 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.006347, allocations: 7.938 kB / 1.005 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.006599, allocations: 179.8 kB / 1.005 GB, free: 7.766 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007228/0.007322, allocations: 0.6909 MB / 1.006 GB, free: 7.023 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.007644, allocations: 195.7 kB / 1.006 GB, free: 6.805 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.007791, allocations: 122.5 kB / 1.006 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.007826, allocations: 11.98 kB / 1.006 GB, free: 6.664 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004217/0.008248, allocations: 308.1 kB / 1.006 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=48): time 2.685e-06/0.008251, allocations: 0 / 1.006 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of matching and sorting (n=48): time 0.0008703/0.009121, allocations: 490.6 kB / 1.007 GB, free: 5.855 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.009186, allocations: 114.8 kB / 1.007 GB, free: 5.719 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.009308, allocations: 184.6 kB / 1.007 GB, free: 5.527 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.009335, allocations: 41.69 kB / 1.007 GB, free: 5.48 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.009389, allocations: 121.3 kB / 1.007 GB, free: 5.355 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.444e-05/0.009474, allocations: 158.7 kB / 1.007 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.626e-05/0.00957, allocations: 110.3 kB / 1.007 GB, free: 5.082 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.169e-05/0.009662, allocations: 342.8 kB / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.009846, allocations: 145.2 kB / 1.008 GB, free: 4.598 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.01007, allocations: 256.8 kB / 1.008 GB, free: 4.309 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.01046, allocations: 394 kB / 1.009 GB, free: 3.887 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.01046, allocations: 4 kB / 1.009 GB, free: 3.883 MB / 0.9636 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0004933/0.01096, allocations: 493.2 kB / 1.009 GB, free: 3.395 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.01098, allocations: 8 kB / 1.009 GB, free: 3.387 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.01098, allocations: 0 / 1.009 GB, free: 3.387 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.011, allocations: 11.94 kB / 1.009 GB, free: 3.375 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.0112, allocations: 91.83 kB / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.01121, allocations: 8 kB / 1.009 GB, free: 3.277 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.01134, allocations: 63.69 kB / 1.009 GB, free: 3.215 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.01136, allocations: 24 kB / 1.009 GB, free: 3.191 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.0001192/0.01148, allocations: 155.7 kB / 1.009 GB, free: 3.031 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.01151, allocations: 23.86 kB / 1.009 GB, free: 3.008 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.01155, allocations: 37.95 kB / 1.009 GB, free: 2.973 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.01156, allocations: 8 kB / 1.009 GB, free: 2.965 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.01157, allocations: 4 kB / 1.009 GB, free: 2.961 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.01157, allocations: 4 kB / 1.009 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.01179, allocations: 276.5 kB / 1.01 GB, free: 2.645 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.01179, allocations: 7.938 kB / 1.01 GB, free: 2.637 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.01199, allocations: 75.89 kB / 1.01 GB, free: 2.562 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.012, allocations: 3.938 kB / 1.01 GB, free: 2.559 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.01202, allocations: 12 kB / 1.01 GB, free: 2.547 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.01203, allocations: 11.92 kB / 1.01 GB, free: 2.535 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01203, allocations: 0 / 1.01 GB, free: 2.535 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.01272, allocations: 0.5878 MB / 1.01 GB, free: 1.922 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.01274, allocations: 23.8 kB / 1.01 GB, free: 1.898 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.01277, allocations: 12 kB / 1.01 GB, free: 1.887 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.01288, allocations: 35.89 kB / 1.01 GB, free: 1.852 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.01298, allocations: 63.89 kB / 1.011 GB, free: 1.789 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.013, allocations: 19.98 kB / 1.011 GB, free: 1.77 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.673e-05/0.01307, allocations: 120.1 kB / 1.011 GB, free: 1.652 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.01307, allocations: 4 kB / 1.011 GB, free: 1.648 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002379/0.01331, allocations: 79.95 kB / 1.011 GB, free: 1.57 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.0008842/0.01419, allocations: 1.139 MB / 1.012 GB, free: 408 kB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0004842/0.01468, allocations: 369.3 kB / 1.012 GB, free: 44 kB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01468, allocations: 384 / 1.012 GB, free: 44 kB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.01491, allocations: 187.7 kB / 1.012 GB, free: 15.86 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.01515, allocations: 40.53 kB / 1.012 GB, free: 15.82 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.0181, allocations: 3.144 MB / 1.016 GB, free: 12.51 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.941e-05/0.0182, allocations: 164 kB / 1.016 GB, free: 12.33 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.01832, allocations: 43.22 kB / 1.016 GB, free: 12.28 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.01844, allocations: 92.47 kB / 1.016 GB, free: 12.19 MB / 0.9792 GB Notification: Performance of SimCode: time 1.614e-06/0.01845, allocations: 0 / 1.016 GB, free: 12.19 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01888/0.03733, allocations: 7.471 MB / 1.023 GB, free: 4.914 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.632/6.669, allocations: 0 / 1.023 GB, free: 4.914 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.798520339652896]