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.005829/0.005829, allocations: 100.4 kB / 15.73 MB, free: 6.027 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.001471/0.001471, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.16 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.505/2.505, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 62.78 kB / 0.9508 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3378, 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.002679/0.3405, allocations: 0.8768 MB / 1.089 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002511/0.343, allocations: 1.305 MB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.3432, allocations: 3.938 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3434, allocations: 11.86 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.3436, allocations: 39.7 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3447, allocations: 268.2 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000463/0.3451, allocations: 295.4 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.3453, allocations: 29.11 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003078/0.3456, allocations: 131.7 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.3459, allocations: 127.6 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.286e-05/0.346, allocations: 27.98 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.3461, allocations: 35.98 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.696e-05/0.3462, allocations: 43.84 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.3464, allocations: 111.6 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.3468, allocations: 259.2 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3468, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3468, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.3468, 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.001267/0.3481, allocations: 0.5339 MB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.3482, allocations: 12.03 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.3483, allocations: 24.73 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.3486, allocations: 237.7 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.3487, allocations: 16.38 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.323e-05/0.3488, allocations: 24.3 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.3492, allocations: 184.2 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3492, allocations: 192 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.3493, allocations: 7.922 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.3493, allocations: 4 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002224/0.3495, allocations: 92.11 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007643/0.3503, allocations: 472.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.3506, allocations: 138.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.3508, allocations: 92.81 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.3508, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003858/0.3512, allocations: 211.8 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.3512, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.0009615/0.3522, allocations: 455.3 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.3523, allocations: 59.41 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.3524, allocations: 140.1 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.3525, allocations: 41.69 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.442e-05/0.3526, allocations: 104.6 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.194e-05/0.3527, allocations: 71.19 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.3529, allocations: 89.98 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3531, allocations: 330.8 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.3534, allocations: 148.7 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.3538, allocations: 201.2 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.3544, allocations: 362.3 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.3544, allocations: 4 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009905/0.3554, allocations: 0.495 MB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.59e-05/0.3554, allocations: 67.41 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3555, allocations: 0 / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.242e-05/0.3555, allocations: 7.984 kB / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.3557, allocations: 51.92 kB / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3557, allocations: 0 / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004044/0.3562, allocations: 87.67 kB / 1.096 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.3562, allocations: 27.92 kB / 1.096 GB, free: 8.945 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.0001841/0.3564, allocations: 158.2 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.3565, allocations: 19.8 kB / 1.096 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.3565, allocations: 17.88 kB / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3565, allocations: 0 / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3565, allocations: 0 / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3566, allocations: 11.94 kB / 1.096 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008634/0.3574, allocations: 0.6622 MB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3574, allocations: 3.938 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.3575, allocations: 7.938 kB / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3575, allocations: 0 / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.3575, allocations: 11.97 kB / 1.097 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3575, allocations: 7.938 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3575, allocations: 0 / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000653/0.3582, allocations: 459 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.3583, allocations: 92.86 kB / 1.097 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.095e-05/0.3583, allocations: 15.98 kB / 1.097 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.3585, allocations: 15.92 kB / 1.097 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.3586, allocations: 15.98 kB / 1.097 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.3587, allocations: 19.98 kB / 1.097 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.004e-05/0.3587, allocations: 103.2 kB / 1.098 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3588, allocations: 4 kB / 1.098 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003545/0.3591, allocations: 64 kB / 1.098 GB, free: 7.176 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.0002408/0.3594, allocations: 137.3 kB / 1.098 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007599/0.3601, allocations: 449.6 kB / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3601, allocations: 0 / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.3604, allocations: 124.1 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.000367/0.3607, allocations: 34.09 kB / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006423/0.3614, allocations: 313.5 kB / 1.099 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.3618, allocations: 0.7245 MB / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.787e-05/0.3619, allocations: 17.55 kB / 1.099 GB, free: 5.316 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.428e-05/0.3619, allocations: 19.44 kB / 1.099 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of SimCode: time 5.51e-07/0.3619, allocations: 0 / 1.099 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of Templates: time 0.00818/0.3701, allocations: 3.703 MB / 1.103 GB, free: 1.625 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