Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001447/0.001448, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.616/2.616, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001855, allocations: 68.33 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7125/0.7144, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001978/0.7164, allocations: 0.8711 MB / 1.084 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.7179, allocations: 1.308 MB / 1.085 GB, free: 116 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.694e-05/0.7179, allocations: 1.656 kB / 1.085 GB, free: 116 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.7181, allocations: 13.83 kB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.7182, allocations: 29.12 kB / 1.085 GB, free: 84 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006727/0.7189, allocations: 273.9 kB / 1.085 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003486/0.7192, allocations: 290.8 kB / 1.086 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.7194, allocations: 36.02 kB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.7196, allocations: 129.6 kB / 1.086 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.7198, allocations: 115.9 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.7198, allocations: 23.03 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.636e-05/0.7199, allocations: 33.89 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.72, allocations: 45.02 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.7202, allocations: 116 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.7205, allocations: 256.4 kB / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.7205, allocations: 0.6094 kB / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.082e-06/0.7205, allocations: 0 / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.7206, allocations: 0 / 1.086 GB, free: 15.53 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009184/0.7215, allocations: 0.5412 MB / 1.087 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.7215, allocations: 9.688 kB / 1.087 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.092e-05/0.7216, allocations: 22.09 kB / 1.087 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.7219, allocations: 229 kB / 1.087 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.7219, allocations: 14.44 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.722, allocations: 16.91 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003722/0.7224, allocations: 185.9 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.7224, allocations: 192 / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.7224, allocations: 11.22 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.7224, allocations: 6.25 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.7227, allocations: 90.8 kB / 1.087 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/0.7234, allocations: 474.7 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.7236, allocations: 137.7 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.7238, allocations: 95.16 kB / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.7239, allocations: 2.25 kB / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.7242, allocations: 215.2 kB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.7242, allocations: 1.219 kB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.0008735/0.7251, allocations: 455.5 kB / 1.089 GB, free: 14 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.7252, allocations: 58.97 kB / 1.089 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.7253, allocations: 136.8 kB / 1.089 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.7254, allocations: 43.88 kB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.678e-05/0.7255, allocations: 97.7 kB / 1.089 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.472e-05/0.7256, allocations: 70.75 kB / 1.089 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.7257, allocations: 87.52 kB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.7259, allocations: 338.1 kB / 1.09 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.7262, allocations: 151.6 kB / 1.09 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.7265, allocations: 211 kB / 1.09 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005485/0.7271, allocations: 356 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.7271, allocations: 1.219 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009029/0.728, allocations: 0.5033 MB / 1.091 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.049e-05/0.7281, allocations: 69.2 kB / 1.091 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.7281, allocations: 5.25 kB / 1.091 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.7281, allocations: 3.438 kB / 1.091 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.7283, allocations: 53.12 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.7284, allocations: 3.578 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.7288, allocations: 71.53 kB / 1.091 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.7288, allocations: 22.61 kB / 1.091 GB, free: 12.54 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001812/0.729, allocations: 175.8 kB / 1.091 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.7291, allocations: 16.84 kB / 1.091 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.7291, allocations: 13.7 kB / 1.091 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.7291, allocations: 2.969 kB / 1.091 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.7291, allocations: 0 / 1.091 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.7291, allocations: 5.859 kB / 1.091 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008751/0.73, allocations: 0.6634 MB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.73, allocations: 2.016 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.49e-05/0.7301, allocations: 10.31 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.7301, allocations: 1 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.7301, allocations: 13.92 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.7301, allocations: 8.938 kB / 1.092 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.7301, allocations: 0 / 1.092 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006497/0.7308, allocations: 461.9 kB / 1.092 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.7309, allocations: 94.12 kB / 1.092 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.493e-05/0.7309, allocations: 16.81 kB / 1.092 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.731, allocations: 13.5 kB / 1.092 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.7311, allocations: 13.61 kB / 1.092 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.7312, allocations: 23.06 kB / 1.092 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.88e-05/0.7312, allocations: 100.2 kB / 1.093 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7312, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003386/0.7316, allocations: 70.06 kB / 1.093 GB, free: 11.5 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0001959/0.7318, allocations: 141.6 kB / 1.093 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008141/0.7326, allocations: 470.8 kB / 1.093 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7326, allocations: 3.938 kB / 1.093 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.7329, allocations: 121.3 kB / 1.093 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.7332, allocations: 34.67 kB / 1.093 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006254/0.7339, allocations: 350.8 kB / 1.094 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.7343, allocations: 0.7164 MB / 1.094 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.7343, allocations: 23.56 kB / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.7343, allocations: 0 / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of Templates: time 0.005633/0.74, allocations: 3.061 MB / 1.097 GB, free: 9.867 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,triMovMea.u,triMovMea.y,triMovMea1.y,booPul.y,triMovMea2.y,booPul1.y Variables in the result:booPul.y,booPul1.y,time,triMovMea.u,triMovMea.y,triMovMea1.y,triMovMea2.y