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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001728/0.001729, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.00195/0.00195, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8934/0.8947, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002333/0.8971, allocations: 0.8809 MB / 1.168 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001904/0.899, allocations: 1.306 MB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.8992, allocations: 3.938 kB / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.8993, allocations: 15.88 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.8995, allocations: 39.69 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000851/0.9004, allocations: 261 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.9008, allocations: 299.4 kB / 1.17 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.901, allocations: 37.08 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002835/0.9013, allocations: 119.8 kB / 1.17 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003073/0.9016, allocations: 131.5 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.439e-05/0.9017, allocations: 24 kB / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.9018, allocations: 35.98 kB / 1.17 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.9019, allocations: 47.88 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.902, allocations: 99.62 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.9024, allocations: 271 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.9024, allocations: 4 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9024, allocations: 0 / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.9024, allocations: 3.938 kB / 1.171 GB, free: 296 kB / 0.8887 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.001207/0.9037, allocations: 0.5318 MB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.9037, allocations: 12.92 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.9038, allocations: 20.75 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.9041, allocations: 232 kB / 1.172 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.9042, allocations: 16.36 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.9043, allocations: 20.38 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.9047, allocations: 190.6 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.9047, allocations: 192 / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.9047, allocations: 3.938 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.9047, allocations: 7.938 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.905, allocations: 92.17 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000682/0.9057, allocations: 468.8 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002658/0.9059, allocations: 142.4 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.9061, allocations: 88.81 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.9061, allocations: 4.156 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003387/0.9065, allocations: 205 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=28): time 2.003e-06/0.9065, allocations: 4 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.0008823/0.9074, allocations: 459.2 kB / 1.173 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.9075, allocations: 63.39 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.9076, allocations: 134 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.9077, allocations: 37.7 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.9077, allocations: 104.6 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.441e-05/0.9078, allocations: 71.17 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.908, allocations: 86 kB / 1.174 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.9081, allocations: 338.8 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/0.9085, allocations: 144.7 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.9088, allocations: 205.2 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005851/0.9094, allocations: 374.8 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.9094, allocations: 0 / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008749/0.9103, allocations: 498.4 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.271e-05/0.9104, allocations: 74.17 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.9104, allocations: 0 / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.9104, allocations: 4 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.9107, allocations: 55.91 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.9107, allocations: 7.938 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.9111, allocations: 67.72 kB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.621e-05/0.9112, allocations: 23.98 kB / 1.175 GB, free: 11.29 MB / 0.9044 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.0001956/0.9114, allocations: 169.8 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.9114, allocations: 19.75 kB / 1.176 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.221e-05/0.9115, allocations: 13.88 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.9115, allocations: 3.938 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.9115, allocations: 7.984 kB / 1.176 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.9115, allocations: 3.938 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008442/0.9124, allocations: 0.6623 MB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.9124, allocations: 0 / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.049e-05/0.9124, allocations: 11.92 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.9125, allocations: 0 / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.9125, allocations: 7.984 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.9125, allocations: 7.938 kB / 1.176 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.9125, allocations: 0 / 1.176 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006234/0.9131, allocations: 451.2 kB / 1.177 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.9132, allocations: 100.9 kB / 1.177 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.9133, allocations: 15.98 kB / 1.177 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.9134, allocations: 11.92 kB / 1.177 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.649e-05/0.9135, allocations: 19.97 kB / 1.177 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.9135, allocations: 15.98 kB / 1.177 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.064e-05/0.9136, allocations: 103.3 kB / 1.177 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.804e-06/0.9136, allocations: 0 / 1.177 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003735/0.914, allocations: 71.92 kB / 1.177 GB, free: 9.5 MB / 0.9044 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.0002155/0.9142, allocations: 133.4 kB / 1.177 GB, free: 9.363 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007391/0.915, allocations: 466.6 kB / 1.178 GB, free: 8.883 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.915, allocations: 0 / 1.178 GB, free: 8.883 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.9152, allocations: 118.1 kB / 1.178 GB, free: 8.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.9156, allocations: 32.22 kB / 1.178 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006854/0.9163, allocations: 343 kB / 1.178 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.9166, allocations: 0.7167 MB / 1.179 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.914e-05/0.9167, allocations: 23.42 kB / 1.179 GB, free: 7.605 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.9167, allocations: 4 kB / 1.179 GB, free: 7.602 MB / 0.9044 GB Notification: Performance of Templates: time 0.005722/0.9224, allocations: 3.064 MB / 1.182 GB, free: 4.559 MB / 0.9044 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