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.001474/0.001473, allocations: 108 kB / 15.61 MB, free: 152 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.002107/0.002107, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.603/1.603, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.811/2.811, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.00212, allocations: 67.91 kB / 0.8692 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9009/0.903, allocations: 151.6 MB / 1.017 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00248/0.9056, allocations: 0.8607 MB / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.9078, allocations: 1.315 MB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.987e-05/0.9079, allocations: 0 / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.9081, allocations: 11.81 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.9083, allocations: 31.77 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007612/0.9091, allocations: 262.4 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.9094, allocations: 299.5 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.9096, allocations: 37.06 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.9098, allocations: 127.7 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.9101, allocations: 119.7 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.832e-05/0.9101, allocations: 20 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.9102, allocations: 39.98 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.9103, allocations: 39.91 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.9105, allocations: 115.5 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.9109, allocations: 253.4 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.9109, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.9109, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.9109, allocations: 0 / 1.021 GB, free: 15.15 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.001107/0.912, allocations: 0.5377 MB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.9121, allocations: 15.97 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.266e-05/0.9122, allocations: 28.67 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.9125, allocations: 228.2 kB / 1.022 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.9126, allocations: 12.38 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.9126, allocations: 24.36 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.913, allocations: 189 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.9131, allocations: 192 / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.9131, allocations: 11.92 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.9131, allocations: 4 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.9133, allocations: 84.17 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007405/0.9141, allocations: 488.6 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.9144, allocations: 130.5 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.9146, allocations: 88.81 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.9146, allocations: 4 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003834/0.915, allocations: 212.9 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 3.747e-06/0.915, allocations: 0 / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001008/0.916, allocations: 456 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.9161, allocations: 55.41 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.9163, allocations: 143.3 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.9163, allocations: 45.69 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.9164, allocations: 104.6 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.9165, allocations: 63.25 kB / 1.024 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.9167, allocations: 89.98 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001907/0.9169, allocations: 330.8 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.9172, allocations: 148.7 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.9176, allocations: 217.1 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005919/0.9182, allocations: 354.3 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.9182, allocations: 4 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000943/0.9192, allocations: 0.4907 MB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-05/0.9193, allocations: 68.8 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.9193, allocations: 0 / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.9193, allocations: 7.938 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.9196, allocations: 51.92 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.9196, allocations: 7.984 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004164/0.92, allocations: 79.75 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.9201, allocations: 23.98 kB / 1.025 GB, free: 10.12 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.0002402/0.9204, allocations: 165.8 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.899e-05/0.9204, allocations: 15.81 kB / 1.026 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.659e-05/0.9204, allocations: 17.88 kB / 1.026 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.9205, allocations: 0 / 1.026 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.9205, allocations: 7.938 kB / 1.026 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-06/0.9205, allocations: 7.922 kB / 1.026 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.9215, allocations: 0.6643 MB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.9215, allocations: 0 / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.9216, allocations: 11.98 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.9216, allocations: 0 / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.9216, allocations: 11.98 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.9216, allocations: 7.938 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.9216, allocations: 0 / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.9223, allocations: 447.2 kB / 1.027 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-05/0.9224, allocations: 92.95 kB / 1.027 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.9225, allocations: 19.98 kB / 1.027 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.9226, allocations: 7.922 kB / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/0.9227, allocations: 27.91 kB / 1.027 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-05/0.9227, allocations: 19.98 kB / 1.027 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.47e-05/0.9228, allocations: 105.2 kB / 1.027 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9228, allocations: 0 / 1.027 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003547/0.9232, allocations: 67.98 kB / 1.027 GB, free: 8.352 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.0002627/0.9235, allocations: 129.5 kB / 1.027 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008641/0.9243, allocations: 478.3 kB / 1.028 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.9244, allocations: 0 / 1.028 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.9246, allocations: 123.9 kB / 1.028 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.925, allocations: 33.61 kB / 1.028 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000726/0.9257, allocations: 315.8 kB / 1.028 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.9262, allocations: 0.7206 MB / 1.029 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.204e-05/0.9262, allocations: 17.55 kB / 1.029 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.9263, allocations: 27.42 kB / 1.029 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.9263, allocations: 0 / 1.029 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of Templates: time 0.008441/0.9348, allocations: 3.554 MB / 1.032 GB, free: 2.914 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches