Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009661, allocations: 98.88 kB / 16.02 MB, free: 76 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.001297/0.001297, allocations: 185.3 kB / 16.93 MB, free: 6.773 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.473/1.473, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.639/2.639, allocations: 437.8 MB / 0.7128 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 8 kB / 0.8735 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.713/0.7134, allocations: 153.8 MB / 1.024 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001083/0.7146, allocations: 0.5946 MB / 1.024 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001945/0.7165, allocations: 1.315 MB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.964e-05/0.7167, allocations: 4 kB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.7168, allocations: 11.92 kB / 1.026 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.717, allocations: 31.77 kB / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008374/0.7178, allocations: 238.2 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000311/0.7181, allocations: 259.5 kB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.7183, allocations: 33.09 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.7185, allocations: 115.6 kB / 1.026 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.7187, allocations: 99.69 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.413e-05/0.7188, allocations: 12 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.153e-05/0.7189, allocations: 27.92 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.012e-05/0.719, allocations: 31.89 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.7191, allocations: 125.2 kB / 1.027 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.7193, allocations: 181.7 kB / 1.027 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.7194, allocations: 0 / 1.027 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7194, allocations: 4 kB / 1.027 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.7194, allocations: 0 / 1.027 GB, free: 12.89 MB / 0.7794 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.0008519/0.7202, allocations: 0.491 MB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.7203, allocations: 8.031 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.649e-05/0.7204, allocations: 20.75 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.7207, allocations: 228.1 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.7207, allocations: 16.36 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.6e-05/0.7208, allocations: 20.38 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.7212, allocations: 195.8 kB / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.7212, allocations: 192 / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.7212, allocations: 3.938 kB / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.7212, allocations: 4 kB / 1.028 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.7215, allocations: 88.17 kB / 1.028 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007383/0.7222, allocations: 492.6 kB / 1.028 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.7225, allocations: 134.5 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.7227, allocations: 97.36 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.7227, allocations: 7.938 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.7231, allocations: 215.9 kB / 1.029 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.954e-06/0.7231, allocations: 0 / 1.029 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0008752/0.724, allocations: 460.6 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.724, allocations: 59.41 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.7242, allocations: 143.9 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.807e-05/0.7242, allocations: 37.7 kB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.791e-05/0.7243, allocations: 104.6 kB / 1.029 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.146e-05/0.7244, allocations: 71.17 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.962e-05/0.7245, allocations: 41.7 kB / 1.03 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.7246, allocations: 334.8 kB / 1.03 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.7249, allocations: 152.6 kB / 1.03 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.7253, allocations: 209.2 kB / 1.03 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005559/0.7258, allocations: 370.3 kB / 1.031 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.7259, allocations: 0 / 1.031 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008557/0.7267, allocations: 0.4946 MB / 1.031 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.466e-05/0.7268, allocations: 75.39 kB / 1.031 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.7268, allocations: 0 / 1.031 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.7268, allocations: 4 kB / 1.031 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.7271, allocations: 55.91 kB / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.7271, allocations: 0 / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.7275, allocations: 99.7 kB / 1.031 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.7276, allocations: 19.98 kB / 1.031 GB, free: 7.902 MB / 0.7794 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.0001803/0.7278, allocations: 166.2 kB / 1.031 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.7278, allocations: 15.81 kB / 1.031 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.7279, allocations: 21.86 kB / 1.031 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.7279, allocations: 3.938 kB / 1.031 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.7279, allocations: 0 / 1.031 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.7279, allocations: 3.938 kB / 1.031 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008188/0.7287, allocations: 0.6701 MB / 1.032 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.7287, allocations: 0 / 1.032 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.563e-05/0.7288, allocations: 7.984 kB / 1.032 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.7288, allocations: 96 / 1.032 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.7288, allocations: 7.984 kB / 1.032 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.7288, allocations: 7.938 kB / 1.032 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7288, allocations: 3.984 kB / 1.032 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006274/0.7295, allocations: 463.1 kB / 1.033 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.533e-05/0.7295, allocations: 96.84 kB / 1.033 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/0.7296, allocations: 15.98 kB / 1.033 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.7297, allocations: 7.938 kB / 1.033 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.7298, allocations: 19.97 kB / 1.033 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.7298, allocations: 27.98 kB / 1.033 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.322e-05/0.7299, allocations: 104.9 kB / 1.033 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.953e-06/0.7299, allocations: 0 / 1.033 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00037/0.7303, allocations: 71.94 kB / 1.033 GB, free: 6.113 MB / 0.7794 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.0002147/0.7305, allocations: 145.3 kB / 1.033 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007191/0.7313, allocations: 447.1 kB / 1.033 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7313, allocations: 256 / 1.033 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.7315, allocations: 126.1 kB / 1.034 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.7319, allocations: 31.97 kB / 1.034 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006282/0.7325, allocations: 380.8 kB / 1.034 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.7328, allocations: 0.7245 MB / 1.035 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.7328, allocations: 19.42 kB / 1.035 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.7328, allocations: 0 / 1.035 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of Templates: time 0.005831/0.7387, allocations: 3.015 MB / 1.038 GB, free: 1.176 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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