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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 184.4 kB / 487.4 MB, free: 5.066 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 221.5 MB / 0.7824 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009453/0.0009455, allocations: 95.53 kB / 0.9219 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.139e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3186, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.388, allocations: 149.2 MB / 1.352 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/1.388, allocations: 70.11 kB / 1.352 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0171/1.405, allocations: 5.517 MB / 1.357 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.213e-06/1.405, allocations: 4 kB / 1.357 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.795e-05/1.405, allocations: 7.812 kB / 1.357 GB, free: 33.75 MB / 0.8386 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.0008963/1.406, allocations: 0.4895 MB / 1.358 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.406, allocations: 7.75 kB / 1.358 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/1.407, allocations: 23.28 kB / 1.358 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/1.407, allocations: 231.1 kB / 1.358 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/1.407, allocations: 14.72 kB / 1.358 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.434e-05/1.407, allocations: 19.5 kB / 1.358 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001874/1.407, allocations: 80.42 kB / 1.358 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/1.408, allocations: 176.7 kB / 1.358 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/1.408, allocations: 0 / 1.358 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/1.408, allocations: 3.328 kB / 1.358 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/1.408, allocations: 3.938 kB / 1.358 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000632/1.408, allocations: 449.8 kB / 1.359 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/1.409, allocations: 126.4 kB / 1.359 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/1.409, allocations: 80.53 kB / 1.359 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/1.409, allocations: 4.031 kB / 1.359 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/1.409, allocations: 203.2 kB / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.573e-06/1.409, allocations: 0 / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0005234/1.409, allocations: 354.8 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/1.41, allocations: 60.97 kB / 1.359 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/1.41, allocations: 129.1 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/1.41, allocations: 38.72 kB / 1.36 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/1.41, allocations: 99.91 kB / 1.36 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.418e-05/1.41, allocations: 69.03 kB / 1.36 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/1.41, allocations: 3.844 kB / 1.36 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001469/1.41, allocations: 329.4 kB / 1.36 GB, free: 32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/1.41, allocations: 125.7 kB / 1.36 GB, free: 32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/1.41, allocations: 174.8 kB / 1.36 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/1.411, allocations: 163.3 kB / 1.36 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.411, allocations: 0 / 1.36 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007058/1.412, allocations: 396.9 kB / 1.361 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.518e-05/1.412, allocations: 66.81 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/1.412, allocations: 3.844 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.412, allocations: 3.844 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/1.412, allocations: 62.61 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/1.412, allocations: 7.922 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/1.412, allocations: 92.08 kB / 1.361 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/1.412, allocations: 21.62 kB / 1.361 GB, free: 31.79 MB / 0.8386 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000151/1.413, allocations: 147.1 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/1.413, allocations: 16.95 kB / 1.361 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/1.413, allocations: 18.41 kB / 1.361 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/1.413, allocations: 3.875 kB / 1.361 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.413, allocations: 0 / 1.361 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.413, allocations: 9.641 kB / 1.361 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005741/1.413, allocations: 0.603 MB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/1.413, allocations: 3.844 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.719e-05/1.413, allocations: 10.7 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/1.413, allocations: 0 / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/1.413, allocations: 15.98 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/1.413, allocations: 0 / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.413, allocations: 0.8906 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/1.414, allocations: 448.8 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/1.414, allocations: 97.95 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/1.414, allocations: 20.09 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/1.414, allocations: 6.969 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/1.414, allocations: 22.16 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/1.414, allocations: 12.56 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.983e-05/1.414, allocations: 102.3 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.414, allocations: 4 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000333/1.415, allocations: 68.28 kB / 1.363 GB, free: 31.02 MB / 0.8386 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[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001999/1.415, allocations: 135.1 kB / 1.363 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004694/1.415, allocations: 413.1 kB / 1.363 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.415, allocations: 0 / 1.363 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/1.415, allocations: 107.5 kB / 1.363 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/1.416, allocations: 32.73 kB / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004126/1.416, allocations: 200.9 kB / 1.363 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/1.416, allocations: 0.7271 MB / 1.364 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.793e-05/1.416, allocations: 22.12 kB / 1.364 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/1.417, allocations: 19.03 kB / 1.364 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.417, allocations: 0 / 1.364 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.005666/1.422, allocations: 3.171 MB / 1.367 GB, free: 29.72 MB / 0.8386 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches