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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001916/0.001917, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002539/0.002539, allocations: 199.9 kB / 16.79 MB, free: 6.828 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.43/1.43, allocations: 222.9 MB / 240.5 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.372/2.372, allocations: 390.2 MB / 0.6649 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.001601, allocations: 67.91 kB / 0.8125 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.813/0.8146, allocations: 140.4 MB / 0.9496 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.00222/0.8169, allocations: 1.153 MB / 0.9507 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.8182, allocations: 1.105 MB / 0.9518 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.943e-05/0.8183, allocations: 2.594 kB / 0.9518 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.399e-05/0.8183, allocations: 11.86 kB / 0.9518 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.8185, allocations: 32.8 kB / 0.9519 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.8188, allocations: 129.5 kB / 0.952 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.8191, allocations: 314.9 kB / 0.9523 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.8193, allocations: 43.2 kB / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.8195, allocations: 123.2 kB / 0.9524 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.8196, allocations: 139.2 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.829e-05/0.8197, allocations: 16.56 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.203e-05/0.8197, allocations: 17.5 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.174e-05/0.8198, allocations: 68.05 kB / 0.9527 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.8199, allocations: 127.8 kB / 0.9528 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.8201, allocations: 216.9 kB / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.8201, allocations: 1.25 kB / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8201, allocations: 0 / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.8201, allocations: 0 / 0.953 GB, free: 6.5 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.001177/0.8213, allocations: 0.6218 MB / 0.9536 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.8214, allocations: 9.344 kB / 0.9536 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.293e-05/0.8214, allocations: 34.41 kB / 0.9537 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.8216, allocations: 203 kB / 0.9538 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.8217, allocations: 266.7 kB / 0.9541 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.913e-05/0.8218, allocations: 34.19 kB / 0.9541 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.8222, allocations: 262.2 kB / 0.9544 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.8222, allocations: 5.281 kB / 0.9544 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.8223, allocations: 17.38 kB / 0.9544 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.8223, allocations: 5.031 kB / 0.9544 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000405/0.8227, allocations: 175.5 kB / 0.9546 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009322/0.8236, allocations: 0.784 MB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.8241, allocations: 205.9 kB / 0.9555 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.8244, allocations: 131.2 kB / 0.9557 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.8244, allocations: 10.92 kB / 0.9557 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005324/0.8249, allocations: 309.7 kB / 0.956 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.723e-06/0.825, allocations: 0 / 0.956 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009815/0.8259, allocations: 491.6 kB / 0.9564 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.826, allocations: 123.5 kB / 0.9566 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.8261, allocations: 175.8 kB / 0.9567 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.8262, allocations: 41.55 kB / 0.9568 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.8262, allocations: 120.9 kB / 0.9569 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.368e-05/0.8263, allocations: 144.8 kB / 0.957 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.8264, allocations: 109.6 kB / 0.9571 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.47e-05/0.8265, allocations: 341.9 kB / 0.9574 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002807/0.8268, allocations: 140.8 kB / 0.9576 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.8271, allocations: 254.3 kB / 0.9578 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.8277, allocations: 399.2 kB / 0.9582 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.8277, allocations: 0 / 0.9582 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007997/0.8285, allocations: 491.1 kB / 0.9587 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.8286, allocations: 9.406 kB / 0.9587 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.8286, allocations: 11.25 kB / 0.9587 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.8286, allocations: 5.188 kB / 0.9587 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.829, allocations: 98.75 kB / 0.9588 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.8291, allocations: 5.5 kB / 0.9588 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.8294, allocations: 57.66 kB / 0.9589 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.273e-05/0.8294, allocations: 19.12 kB / 0.9589 GB, free: 1.953 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.0001322/0.8295, allocations: 164 kB / 0.959 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.8296, allocations: 28.88 kB / 0.9591 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.05e-05/0.8296, allocations: 30.19 kB / 0.9591 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.8297, allocations: 5.281 kB / 0.9591 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.8297, allocations: 4.906 kB / 0.9591 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.8297, allocations: 8.812 kB / 0.9591 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/0.83, allocations: 357.8 kB / 0.9594 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.83, allocations: 0 / 0.9594 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004022/0.8304, allocations: 75.64 kB / 0.9595 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.8304, allocations: 10.34 kB / 0.9595 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.8305, allocations: 13.47 kB / 0.9595 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.8305, allocations: 2.281 kB / 0.9595 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8305, allocations: 0.9062 kB / 0.9595 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.8315, allocations: 0.579 MB / 0.9601 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-05/0.8316, allocations: 108.2 kB / 0.9602 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.912e-05/0.8316, allocations: 15.59 kB / 0.9602 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.8318, allocations: 28.28 kB / 0.9603 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.832, allocations: 40.62 kB / 0.9603 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.832, allocations: 14.53 kB / 0.9603 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.706e-05/0.8321, allocations: 128.9 kB / 0.9604 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8321, allocations: 0 / 0.9604 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003313/0.8324, allocations: 83.12 kB / 0.9605 GB, free: 0.7695 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.000151/0.8326, allocations: 117.9 kB / 0.9606 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007261/0.8333, allocations: 395 kB / 0.961 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8333, allocations: 1.5 kB / 0.961 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003401/0.8337, allocations: 173.3 kB / 0.9612 GB, free: 452 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.834, allocations: 45.44 kB / 0.9612 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.8351, allocations: 0.7298 MB / 0.9619 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.8355, allocations: 0.7619 MB / 0.9627 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.8356, allocations: 34.67 kB / 0.9627 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.8357, allocations: 1.375 kB / 0.9627 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of Templates: time 0.00667/0.8423, allocations: 3.945 MB / 0.9665 GB, free: 13.07 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/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