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.009722/0.009723, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.002286/0.002286, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.556/2.556, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 63.66 kB / 0.9508 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3428, allocations: 140.4 MB / 1.088 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002119/0.345, allocations: 0.8749 MB / 1.089 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3467, allocations: 1.309 MB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.062e-05/0.3468, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.3469, allocations: 11.81 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.3471, allocations: 39.77 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006779/0.3478, allocations: 264.7 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.3481, allocations: 295.4 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.3482, allocations: 25.12 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.3484, allocations: 139.6 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.3486, allocations: 123.6 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.3487, allocations: 24 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.711e-05/0.3488, allocations: 39.98 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.778e-05/0.3489, allocations: 43.84 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.349, allocations: 103.6 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000297/0.3493, allocations: 267.2 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3493, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3493, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.879e-06/0.3493, allocations: 0 / 1.091 GB, free: 13.98 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.0009334/0.3503, allocations: 0.5378 MB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.3503, allocations: 12.03 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.3504, allocations: 20.75 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.3507, allocations: 236 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.3507, allocations: 16.36 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.3508, allocations: 16.38 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.3511, allocations: 188.2 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3511, allocations: 192 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.3512, allocations: 7.922 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3512, allocations: 4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.3514, allocations: 92.17 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006087/0.352, allocations: 476.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.3523, allocations: 130.5 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.3524, allocations: 96.8 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3525, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003455/0.3528, allocations: 215.8 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 1.894e-06/0.3528, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.0008351/0.3537, allocations: 455.4 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3537, allocations: 55.34 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.3538, allocations: 143.5 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.3539, allocations: 41.7 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.354, allocations: 100.6 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.495e-05/0.354, allocations: 83.11 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.3542, allocations: 82 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3543, allocations: 334.8 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.3546, allocations: 148.7 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.355, allocations: 209.2 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.3554, allocations: 354.4 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.3555, allocations: 0 / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008275/0.3563, allocations: 0.4989 MB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.3564, allocations: 69.42 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3564, allocations: 4 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3564, allocations: 0 / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.3566, allocations: 55.91 kB / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3566, allocations: 4 kB / 1.096 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.357, allocations: 79.69 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/0.357, allocations: 23.98 kB / 1.096 GB, free: 8.953 MB / 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.0001519/0.3572, allocations: 158.1 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.3573, allocations: 19.81 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.3573, allocations: 13.88 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3573, allocations: 4.094 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3573, allocations: 4 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3573, allocations: 11.91 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007896/0.3581, allocations: 0.6622 MB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3581, allocations: 4 kB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.3582, allocations: 4 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3582, allocations: 3.984 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.3582, allocations: 11.98 kB / 1.097 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3582, allocations: 7.938 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3582, allocations: 0 / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.3588, allocations: 460.2 kB / 1.097 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.3589, allocations: 96.86 kB / 1.097 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.3589, allocations: 15.98 kB / 1.097 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3591, allocations: 11.92 kB / 1.097 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3591, allocations: 11.98 kB / 1.097 GB, free: 7.371 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.3592, allocations: 27.97 kB / 1.097 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.581e-05/0.3592, allocations: 95.27 kB / 1.098 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3592, allocations: 4 kB / 1.098 GB, free: 7.246 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003201/0.3596, allocations: 67.98 kB / 1.098 GB, free: 7.18 MB / 0.8575 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.000182/0.3597, allocations: 133.4 kB / 1.098 GB, free: 7.039 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006836/0.3604, allocations: 455 kB / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3604, allocations: 256 / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.3607, allocations: 123.9 kB / 1.098 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.361, allocations: 27.97 kB / 1.098 GB, free: 6.422 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005789/0.3616, allocations: 315.5 kB / 1.099 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3619, allocations: 0.7206 MB / 1.099 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.927e-05/0.362, allocations: 17.55 kB / 1.099 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.362, allocations: 19.44 kB / 1.099 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.362, allocations: 0 / 1.099 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of Templates: time 0.006529/0.3685, allocations: 3.581 MB / 1.103 GB, free: 1.758 MB / 0.8575 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