Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_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.008407/0.008407, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.002196/0.002196, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.433/1.433, allocations: 222.9 MB / 240.3 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.91 kB / 0.9508 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.075/1.076, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002364/1.079, allocations: 0.8779 MB / 1.089 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002071/1.081, allocations: 1.3 MB / 1.09 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.636e-05/1.081, allocations: 5.062 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001231/1.081, allocations: 13.66 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001685/1.081, allocations: 34.12 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008514/1.082, allocations: 263.3 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004445/1.083, allocations: 299.8 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/1.083, allocations: 32.12 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/1.083, allocations: 122.8 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/1.083, allocations: 136.3 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.867e-05/1.083, allocations: 22.94 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/1.084, allocations: 37.38 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.764e-05/1.084, allocations: 45.31 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001572/1.084, allocations: 110.5 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004448/1.084, allocations: 260.9 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/1.084, allocations: 4 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.184e-06/1.084, allocations: 0.7188 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.179e-05/1.084, allocations: 0 / 1.091 GB, free: 3.395 MB / 0.8575 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.001213/1.085, allocations: 0.5447 MB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.784e-05/1.086, allocations: 10.52 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/1.086, allocations: 22.39 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/1.086, allocations: 223.7 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/1.086, allocations: 15 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.827e-05/1.086, allocations: 22.41 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/1.087, allocations: 183.5 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/1.087, allocations: 192 / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/1.087, allocations: 7.578 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/1.087, allocations: 6.375 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/1.087, allocations: 91.47 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009283/1.088, allocations: 469.1 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/1.089, allocations: 142.2 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/1.089, allocations: 98.03 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/1.089, allocations: 1.969 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005137/1.089, allocations: 209.1 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 1.813e-06/1.089, allocations: 4 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.001355/1.091, allocations: 455 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/1.091, allocations: 60.09 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/1.091, allocations: 144.2 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/1.091, allocations: 40.83 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.166e-05/1.091, allocations: 105.8 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.892e-05/1.091, allocations: 63.09 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/1.092, allocations: 87.7 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001328/1.092, allocations: 337.4 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/1.092, allocations: 146.7 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/1.092, allocations: 211.5 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/1.093, allocations: 368.1 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.093, allocations: 1.125 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001025/1.094, allocations: 0.4911 MB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.809e-05/1.094, allocations: 73.8 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/1.094, allocations: 5 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/1.094, allocations: 3.656 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/1.095, allocations: 56.48 kB / 1.096 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/1.095, allocations: 8.016 kB / 1.096 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/1.095, allocations: 74.48 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/1.095, allocations: 23.12 kB / 1.096 GB, free: 396 kB / 0.8575 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.000259/1.095, allocations: 165.4 kB / 1.096 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/1.095, allocations: 17.38 kB / 1.096 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.459e-05/1.096, allocations: 17.91 kB / 1.096 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/1.096, allocations: 2.656 kB / 1.096 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.096, allocations: 0 / 1.096 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/1.096, allocations: 6.312 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/1.097, allocations: 0.6599 MB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/1.097, allocations: 0.7969 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.588e-05/1.097, allocations: 13.53 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/1.097, allocations: 1.875 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/1.097, allocations: 9.375 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/1.097, allocations: 5.406 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.097, allocations: 0 / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008743/1.098, allocations: 466.5 kB / 1.097 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/1.098, allocations: 94.7 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.273e-05/1.098, allocations: 16.66 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/1.098, allocations: 9.703 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/1.098, allocations: 18.64 kB / 1.097 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/1.098, allocations: 22.48 kB / 1.097 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 7.499e-05/1.098, allocations: 96.94 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.91e-07/1.098, allocations: 0 / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000398/1.099, allocations: 66.08 kB / 1.098 GB, free: 15.35 MB / 0.8731 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.00028/1.099, allocations: 138.1 kB / 1.098 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008744/1.1, allocations: 450.3 kB / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/1.1, allocations: 0 / 1.098 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002602/1.1, allocations: 117.9 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/1.101, allocations: 36.08 kB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/1.101, allocations: 315 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/1.102, allocations: 0.7205 MB / 1.099 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.378e-05/1.102, allocations: 27.3 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.264e-05/1.102, allocations: 22.25 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/1.102, allocations: 0 / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of Templates: time 0.009897/1.112, allocations: 3.582 MB / 1.103 GB, free: 13.77 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches