Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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,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") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001197/0.001197, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.16 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.311/2.311, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.88 kB / 0.9516 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7523/0.7537, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.00216/0.7559, allocations: 1.107 MB / 1.09 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.7573, allocations: 1.103 MB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.7574, allocations: 1.75 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.415e-05/0.7575, allocations: 21.52 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.7576, allocations: 45.7 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005101/0.7582, allocations: 151.8 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.7585, allocations: 322.8 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.7587, allocations: 49.25 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.7589, allocations: 130.1 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.7591, allocations: 151.8 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.7592, allocations: 29.72 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.984e-05/0.7593, allocations: 29.84 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.41e-05/0.7594, allocations: 75.44 kB / 1.092 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.7595, allocations: 139.4 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.7599, allocations: 316.7 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.7599, allocations: 0.8438 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7599, allocations: 3.938 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.7599, allocations: 0 / 1.092 GB, free: 3.25 MB / 0.8575 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.001228/0.7612, allocations: 0.6175 MB / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.7612, allocations: 10.12 kB / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.7613, allocations: 34.17 kB / 1.093 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.7614, allocations: 201.7 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.7616, allocations: 270.7 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.7617, allocations: 36.34 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005232/0.7622, allocations: 256.5 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.7623, allocations: 5.375 kB / 1.094 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.7623, allocations: 12.22 kB / 1.094 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.7623, allocations: 5.062 kB / 1.094 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004446/0.7628, allocations: 173.2 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.7638, allocations: 0.7778 MB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.7643, allocations: 211.1 kB / 1.095 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.7646, allocations: 131.3 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/0.7647, allocations: 11.92 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005791/0.7652, allocations: 314.8 kB / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/0.7653, allocations: 0 / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001116/0.7664, allocations: 490.8 kB / 1.096 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.7664, allocations: 115.8 kB / 1.096 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.7666, allocations: 178.1 kB / 1.096 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.7666, allocations: 37.78 kB / 1.096 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.7667, allocations: 121 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.7668, allocations: 146.3 kB / 1.096 GB, free: 424 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.767, allocations: 105.2 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.704e-05/0.767, allocations: 346.7 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.7674, allocations: 145 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004189/0.7678, allocations: 250.7 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007258/0.7686, allocations: 389.8 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.7686, allocations: 1.562 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009698/0.7696, allocations: 498.1 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.7696, allocations: 10.03 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.7696, allocations: 3.688 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.7696, allocations: 5.344 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.7701, allocations: 95.42 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.7701, allocations: 5.984 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.7704, allocations: 57.61 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.7705, allocations: 32.55 kB / 1.098 GB, free: 15.32 MB / 0.8731 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.0001914/0.7707, allocations: 157.8 kB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.7707, allocations: 34.06 kB / 1.098 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.393e-05/0.7708, allocations: 32.08 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.7708, allocations: 5.594 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.7708, allocations: 0.8438 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.7709, allocations: 3.641 kB / 1.098 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004373/0.7713, allocations: 358.9 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.7713, allocations: 5.094 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/0.7717, allocations: 75.89 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.471e-05/0.7718, allocations: 6.562 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.7718, allocations: 10.55 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.7718, allocations: 3.625 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7718, allocations: 1.266 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.773, allocations: 0.5874 MB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.7731, allocations: 101.7 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.266e-05/0.7732, allocations: 18.28 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.7734, allocations: 29.86 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.7736, allocations: 40.03 kB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.7736, allocations: 17.39 kB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001171/0.7737, allocations: 127.3 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7737, allocations: 0 / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003816/0.7741, allocations: 84.28 kB / 1.1 GB, free: 14.3 MB / 0.8731 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.0002055/0.7743, allocations: 118.1 kB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000882/0.7752, allocations: 388 kB / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7752, allocations: 0 / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003848/0.7756, allocations: 177 kB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.776, allocations: 49.91 kB / 1.1 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.7772, allocations: 0.6368 MB / 1.101 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.7776, allocations: 0.7651 MB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.7777, allocations: 42.7 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of SimCode: time 3.3e-07/0.7777, allocations: 0 / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.00765/0.7854, allocations: 3.984 MB / 1.106 GB, free: 12.52 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches