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.00169/0.001691, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00199/0.00199, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.509/1.509, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.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.449/2.449, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 63.91 kB / 0.8121 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7908/0.7928, allocations: 140.4 MB / 0.9491 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.003184/0.7961, allocations: 1.153 MB / 0.9503 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.7979, allocations: 1.104 MB / 0.9513 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.7981, allocations: 2.75 kB / 0.9513 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.446e-05/0.7982, allocations: 11.86 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.7985, allocations: 35.77 kB / 0.9514 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005892/0.7991, allocations: 146.8 kB / 0.9515 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.7995, allocations: 320.8 kB / 0.9518 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.7997, allocations: 49.34 kB / 0.9519 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003444/0.8001, allocations: 132.1 kB / 0.952 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000298/0.8004, allocations: 154.9 kB / 0.9521 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.635e-05/0.8005, allocations: 30.12 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.062e-05/0.8006, allocations: 29.19 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.407e-05/0.8006, allocations: 75.61 kB / 0.9523 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.8008, allocations: 137.1 kB / 0.9524 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.8011, allocations: 306.5 kB / 0.9527 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.8011, allocations: 5.125 kB / 0.9527 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.204e-06/0.8011, allocations: 3.938 kB / 0.9527 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.8011, allocations: 0 / 0.9527 GB, free: 6.398 MB / 0.7169 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.001334/0.8025, allocations: 0.6263 MB / 0.9533 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.536e-05/0.8025, allocations: 13.56 kB / 0.9533 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.8027, allocations: 29.75 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.8029, allocations: 203.6 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000252/0.8031, allocations: 262.1 kB / 0.9538 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.932e-05/0.8032, allocations: 34.94 kB / 0.9538 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.8038, allocations: 257.7 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.8038, allocations: 9.406 kB / 0.9541 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.8038, allocations: 9.562 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.8039, allocations: 4.938 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.8043, allocations: 170.6 kB / 0.9543 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.8053, allocations: 0.7845 MB / 0.955 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.8058, allocations: 209.9 kB / 0.9552 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.806, allocations: 128.1 kB / 0.9554 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.455e-05/0.806, allocations: 9.609 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005487/0.8066, allocations: 314.5 kB / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.753e-06/0.8066, allocations: 0 / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009309/0.8075, allocations: 490.7 kB / 0.9561 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.8076, allocations: 111.8 kB / 0.9562 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.8077, allocations: 175.2 kB / 0.9564 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.8078, allocations: 42 kB / 0.9564 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.8078, allocations: 120.8 kB / 0.9566 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.54e-05/0.8079, allocations: 148.9 kB / 0.9567 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.8081, allocations: 113.4 kB / 0.9568 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.137e-05/0.8082, allocations: 341.1 kB / 0.9571 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.8084, allocations: 150.2 kB / 0.9573 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.8088, allocations: 254.6 kB / 0.9575 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005938/0.8094, allocations: 389 kB / 0.9579 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.8094, allocations: 1.375 kB / 0.9579 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008434/0.8102, allocations: 494.2 kB / 0.9584 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.8103, allocations: 10.88 kB / 0.9584 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.8103, allocations: 6.219 kB / 0.9584 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.8103, allocations: 5.594 kB / 0.9584 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/0.8107, allocations: 93.98 kB / 0.9585 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.8108, allocations: 10.11 kB / 0.9585 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.8111, allocations: 60.36 kB / 0.9585 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.8111, allocations: 20.25 kB / 0.9586 GB, free: 1.859 MB / 0.7169 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.0001647/0.8113, allocations: 156.7 kB / 0.9587 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.8113, allocations: 31.55 kB / 0.9587 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.621e-05/0.8114, allocations: 30.66 kB / 0.9588 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.8114, allocations: 5.562 kB / 0.9588 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.8114, allocations: 1 kB / 0.9588 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.8114, allocations: 9.109 kB / 0.9588 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.8118, allocations: 349.4 kB / 0.9591 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.8118, allocations: 0 / 0.9591 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000412/0.8122, allocations: 79.17 kB / 0.9592 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.8123, allocations: 7.312 kB / 0.9592 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.8123, allocations: 12.83 kB / 0.9592 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.8123, allocations: 2.281 kB / 0.9592 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.8123, allocations: 9 kB / 0.9592 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.8134, allocations: 0.5779 MB / 0.9598 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.378e-05/0.8135, allocations: 105.3 kB / 0.9599 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.262e-05/0.8135, allocations: 16.05 kB / 0.9599 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.8138, allocations: 36.09 kB / 0.9599 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.8139, allocations: 50.78 kB / 0.96 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.814, allocations: 19.02 kB / 0.96 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.746e-05/0.814, allocations: 121.4 kB / 0.9601 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8141, allocations: 3.938 kB / 0.9601 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000345/0.8144, allocations: 83.03 kB / 0.9602 GB, free: 0.6758 MB / 0.7169 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.0001999/0.8146, allocations: 125.9 kB / 0.9603 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008007/0.8154, allocations: 411 kB / 0.9607 GB, free: 404 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.8154, allocations: 3.938 kB / 0.9607 GB, free: 400 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.8158, allocations: 198.2 kB / 0.9609 GB, free: 320 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.8162, allocations: 50.11 kB / 0.961 GB, free: 288 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.8173, allocations: 0.6852 MB / 0.9616 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.8177, allocations: 0.7666 MB / 0.9624 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001776/0.8179, allocations: 40.39 kB / 0.9624 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.818, allocations: 35.53 kB / 0.9624 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of SimCode: time 1.9e-07/0.818, allocations: 0 / 0.9624 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of Templates: time 0.008108/0.8261, allocations: 3.591 MB / 0.966 GB, free: 13.28 MB / 0.7325 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/jenkins/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