Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.455/2.455, allocations: 284.9 MB / 292.4 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 184.8 kB / 360.6 MB, free: 7.281 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.3 MB / 0.6191 GB, free: 12.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001093, allocations: 90.14 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.704e-05/2.713e-05, allocations: 4 kB / 0.8509 GB, free: 3.336 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8061/0.8061, allocations: 115.3 MB / 0.9634 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2322/1.038, allocations: 137.8 MB / 1.098 GB, free: 2.672 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/1.039, allocations: 72.47 kB / 1.098 GB, free: 2.602 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02782/1.067, allocations: 5.492 MB / 1.103 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.134e-06/1.067, allocations: 0 / 1.103 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.55e-05/1.067, allocations: 4 kB / 1.103 GB, free: 13.19 MB / 0.7136 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.0009531/1.068, allocations: 0.4923 MB / 1.104 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/1.068, allocations: 12.03 kB / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/1.068, allocations: 22.75 kB / 1.104 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/1.068, allocations: 239 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/1.068, allocations: 15.98 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-05/1.068, allocations: 16 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000254/1.069, allocations: 72.45 kB / 1.104 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/1.069, allocations: 167.2 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/1.069, allocations: 4 kB / 1.104 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/1.069, allocations: 7.359 kB / 1.104 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/1.069, allocations: 8 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009629/1.07, allocations: 457.6 kB / 1.105 GB, free: 11.56 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/1.07, allocations: 114.9 kB / 1.105 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/1.071, allocations: 85.2 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/1.071, allocations: 8.188 kB / 1.105 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/1.071, allocations: 202.4 kB / 1.105 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 6.612e-06/1.071, allocations: 0 / 1.105 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.001011/1.072, allocations: 341.3 kB / 1.106 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/1.072, allocations: 63.39 kB / 1.106 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/1.072, allocations: 132.3 kB / 1.106 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.32e-05/1.073, allocations: 37.7 kB / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/1.073, allocations: 100.6 kB / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000101/1.073, allocations: 63.25 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/1.073, allocations: 8 kB / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001669/1.073, allocations: 326.8 kB / 1.106 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/1.073, allocations: 124.3 kB / 1.106 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/1.074, allocations: 180.9 kB / 1.107 GB, free: 9.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007277/1.075, allocations: 157.2 kB / 1.107 GB, free: 9.578 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/1.075, allocations: 0 / 1.107 GB, free: 9.578 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001423/1.076, allocations: 407.3 kB / 1.107 GB, free: 9.176 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.324e-05/1.076, allocations: 71.39 kB / 1.107 GB, free: 9.094 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.076, allocations: 3.688 kB / 1.107 GB, free: 9.094 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/1.076, allocations: 4 kB / 1.107 GB, free: 9.09 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/1.077, allocations: 63.91 kB / 1.107 GB, free: 9.027 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/1.077, allocations: 7.953 kB / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007296/1.077, allocations: 83.86 kB / 1.107 GB, free: 8.938 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/1.078, allocations: 20.09 kB / 1.107 GB, free: 8.918 MB / 0.7136 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.0002379/1.078, allocations: 158.1 kB / 1.107 GB, free: 8.754 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008239/1.079, allocations: 341.3 kB / 1.108 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.876e-05/1.079, allocations: 19.8 kB / 1.108 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.114e-05/1.079, allocations: 9.969 kB / 1.108 GB, free: 8.387 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/1.079, allocations: 7.953 kB / 1.108 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.079, allocations: 0 / 1.108 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.079, allocations: 4.641 kB / 1.108 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/1.08, allocations: 0.6043 MB / 1.108 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/1.08, allocations: 0 / 1.108 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/1.08, allocations: 12 kB / 1.108 GB, free: 7.715 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/1.08, allocations: 3.938 kB / 1.108 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/1.08, allocations: 15.92 kB / 1.108 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/1.08, allocations: 0 / 1.108 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.08, allocations: 5.406 kB / 1.108 GB, free: 7.691 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/1.081, allocations: 431.7 kB / 1.109 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/1.081, allocations: 96.86 kB / 1.109 GB, free: 7.141 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.601e-05/1.081, allocations: 19.98 kB / 1.109 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/1.082, allocations: 11.94 kB / 1.109 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/1.082, allocations: 19.97 kB / 1.109 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.192e-05/1.082, allocations: 15.98 kB / 1.109 GB, free: 7.074 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 9.551e-05/1.082, allocations: 102.2 kB / 1.109 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.21e-07/1.082, allocations: 0 / 1.109 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0006136/1.082, allocations: 59.98 kB / 1.109 GB, free: 6.918 MB / 0.7136 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.001377/1.084, allocations: 1.012 MB / 1.11 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0009704/1.085, allocations: 410.6 kB / 1.111 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.085, allocations: 0 / 1.111 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002706/1.085, allocations: 112.1 kB / 1.111 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/1.086, allocations: 32.47 kB / 1.111 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/1.087, allocations: 260.8 kB / 1.111 GB, free: 5.031 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/1.087, allocations: 0.7246 MB / 1.112 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001342/1.087, allocations: 26.06 kB / 1.112 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/1.087, allocations: 49.05 kB / 1.112 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of SimCode: time 9.72e-07/1.087, allocations: 0 / 1.112 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04598/1.133, allocations: 4.407 MB / 1.116 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/1.134, allocations: 152.6 kB / 1.116 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.642, allocations: 0 / 1.116 GB, free: 15.72 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)