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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001155/0.001155, allocations: 110.2 kB / 16.37 MB, free: 6.012 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.001021/0.001021, allocations: 191.4 kB / 17.31 MB, free: 5.613 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62.09 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2966, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00225/0.2989, allocations: 0.8625 MB / 0.952 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.3005, allocations: 1.309 MB / 0.9533 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.326e-05/0.3006, allocations: 3.938 kB / 0.9533 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.666e-05/0.3007, allocations: 11.86 kB / 0.9533 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.3008, allocations: 27.72 kB / 0.9533 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.3015, allocations: 270.3 kB / 0.9536 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.3018, allocations: 299.4 kB / 0.9539 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3019, allocations: 33.09 kB / 0.9539 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.3022, allocations: 131.7 kB / 0.954 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.3024, allocations: 123.6 kB / 0.9541 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.691e-05/0.3024, allocations: 24 kB / 0.9542 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.586e-05/0.3025, allocations: 35.98 kB / 0.9542 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.434e-05/0.3026, allocations: 47.83 kB / 0.9542 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.3027, allocations: 107.6 kB / 0.9543 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.303, allocations: 259.2 kB / 0.9546 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.303, allocations: 0 / 0.9546 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.222e-06/0.303, allocations: 0 / 0.9546 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.303, allocations: 0 / 0.9546 GB, free: 4.539 MB / 0.7325 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.0008639/0.3039, allocations: 0.5416 MB / 0.9551 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.304, allocations: 8.031 kB / 0.9551 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.304, allocations: 24.73 kB / 0.9551 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.3043, allocations: 244 kB / 0.9554 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.3043, allocations: 20.38 kB / 0.9554 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.3044, allocations: 16.36 kB / 0.9554 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003461/0.3047, allocations: 184.6 kB / 0.9556 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.3048, allocations: 192 / 0.9556 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.3048, allocations: 11.92 kB / 0.9556 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3048, allocations: 0 / 0.9556 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.305, allocations: 92.12 kB / 0.9557 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006622/0.3057, allocations: 476.6 kB / 0.9561 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.3059, allocations: 138.5 kB / 0.9563 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.3061, allocations: 92.81 kB / 0.9564 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.3062, allocations: 0 / 0.9564 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003455/0.3065, allocations: 212 kB / 0.9566 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=28): time 1.733e-06/0.3065, allocations: 0 / 0.9566 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.0008371/0.3074, allocations: 447.4 kB / 0.957 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.3074, allocations: 59.41 kB / 0.957 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.3076, allocations: 140.4 kB / 0.9572 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.8e-05/0.3076, allocations: 49.67 kB / 0.9572 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.3077, allocations: 96.61 kB / 0.9573 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/0.3078, allocations: 71.17 kB / 0.9574 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.3079, allocations: 93.98 kB / 0.9575 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3081, allocations: 334.8 kB / 0.9578 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.3084, allocations: 148.7 kB / 0.9579 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.3087, allocations: 201.2 kB / 0.9581 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.3092, allocations: 362.3 kB / 0.9585 GB, free: 272 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3092, allocations: 0 / 0.9585 GB, free: 272 kB / 0.7325 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008117/0.31, allocations: 0.4946 MB / 0.959 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.3101, allocations: 71.39 kB / 0.959 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3101, allocations: 0 / 0.959 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3101, allocations: 4 kB / 0.959 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.3104, allocations: 51.91 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3104, allocations: 8 kB / 0.9591 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003636/0.3108, allocations: 83.64 kB / 0.9592 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.717e-05/0.3108, allocations: 27.92 kB / 0.9592 GB, free: 15.5 MB / 0.7481 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.0001642/0.311, allocations: 163.8 kB / 0.9593 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.311, allocations: 19.8 kB / 0.9594 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.3111, allocations: 17.81 kB / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3111, allocations: 4 kB / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3111, allocations: 0 / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3111, allocations: 7.938 kB / 0.9594 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007979/0.3119, allocations: 0.6621 MB / 0.96 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3119, allocations: 3.984 kB / 0.96 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.707e-05/0.312, allocations: 11.94 kB / 0.9601 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.312, allocations: 0 / 0.9601 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.312, allocations: 7.984 kB / 0.9601 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.312, allocations: 3.938 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.312, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.3126, allocations: 463.2 kB / 0.9605 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.895e-05/0.3127, allocations: 88.95 kB / 0.9606 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.232e-05/0.3128, allocations: 15.98 kB / 0.9606 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.3129, allocations: 11.92 kB / 0.9606 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.3129, allocations: 15.98 kB / 0.9606 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.313, allocations: 15.98 kB / 0.9607 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.254e-05/0.3131, allocations: 111.2 kB / 0.9608 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3131, allocations: 0 / 0.9608 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003451/0.3134, allocations: 64 kB / 0.9608 GB, free: 13.74 MB / 0.7481 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.0001927/0.3136, allocations: 137.7 kB / 0.961 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006852/0.3143, allocations: 446.5 kB / 0.9614 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3143, allocations: 0 / 0.9614 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.3145, allocations: 121.1 kB / 0.9615 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.3149, allocations: 46.39 kB / 0.9615 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005889/0.3155, allocations: 321.3 kB / 0.9618 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.3158, allocations: 0.7244 MB / 0.9626 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.763e-05/0.3159, allocations: 17.55 kB / 0.9626 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.3159, allocations: 15.44 kB / 0.9626 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of SimCode: time 4.21e-07/0.3159, allocations: 0 / 0.9626 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of Templates: time 0.007079/0.323, allocations: 3.568 MB / 0.9661 GB, free: 8.309 MB / 0.7481 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 -s gbode -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/jenkins1/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