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.64/2.64, allocations: 287.3 MB / 302.3 MB, free: 8.215 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.001486/0.001486, allocations: 175.5 kB / 370.8 MB, free: 10.89 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.12/2.12, allocations: 205.4 MB / 0.6295 GB, free: 10.67 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.001089, allocations: 96.12 kB / 0.7428 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004946/0.0004949, allocations: 11.89 kB / 0.8657 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2173, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9389/1.156, allocations: 138.5 MB / 1.114 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/1.157, allocations: 70.78 kB / 1.114 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03844/1.195, allocations: 5.535 MB / 1.119 GB, free: 31.25 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.725e-06/1.195, allocations: 0 / 1.119 GB, free: 31.25 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.539e-05/1.195, allocations: 0 / 1.119 GB, free: 31.25 MB / 0.698 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.0009913/1.196, allocations: 0.5058 MB / 1.12 GB, free: 30.78 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/1.196, allocations: 15.45 kB / 1.12 GB, free: 30.78 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.066e-05/1.196, allocations: 44.64 kB / 1.12 GB, free: 30.74 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.916e-05/1.197, allocations: 31.09 kB / 1.12 GB, free: 30.73 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/1.197, allocations: 230.9 kB / 1.12 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/1.197, allocations: 22.36 kB / 1.12 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.953e-05/1.197, allocations: 21.48 kB / 1.12 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005175/1.198, allocations: 188.3 kB / 1.12 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/1.198, allocations: 2.531 kB / 1.12 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/1.198, allocations: 3.938 kB / 1.12 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/1.198, allocations: 3.906 kB / 1.12 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003279/1.198, allocations: 100.4 kB / 1.12 GB, free: 30.48 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008525/1.199, allocations: 488 kB / 1.121 GB, free: 30.19 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/1.199, allocations: 140.5 kB / 1.121 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/1.199, allocations: 4.188 kB / 1.121 GB, free: 30.16 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005175/1.2, allocations: 222.2 kB / 1.121 GB, free: 30.11 MB / 0.698 GB Notification: Performance of pre-optimization done (n=28): time 2.625e-06/1.2, allocations: 0 / 1.121 GB, free: 30.11 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.001294/1.201, allocations: 468.3 kB / 1.121 GB, free: 30.05 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/1.201, allocations: 61.77 kB / 1.121 GB, free: 29.99 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/1.201, allocations: 123.6 kB / 1.122 GB, free: 29.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.637e-05/1.202, allocations: 39.89 kB / 1.122 GB, free: 29.87 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/1.202, allocations: 102.8 kB / 1.122 GB, free: 29.79 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.409e-05/1.202, allocations: 70.27 kB / 1.122 GB, free: 29.75 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-05/1.202, allocations: 7.656 kB / 1.122 GB, free: 29.75 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001409/1.202, allocations: 332.2 kB / 1.122 GB, free: 29.44 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/1.202, allocations: 143.2 kB / 1.122 GB, free: 29.44 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004755/1.203, allocations: 203.8 kB / 1.122 GB, free: 29.38 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00049/1.203, allocations: 217.5 kB / 1.123 GB, free: 29.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/1.203, allocations: 0 / 1.123 GB, free: 29.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001259/1.205, allocations: 497.3 kB / 1.123 GB, free: 29.19 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/1.205, allocations: 68.34 kB / 1.123 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/1.205, allocations: 4 kB / 1.123 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/1.205, allocations: 11.8 kB / 1.123 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/1.205, allocations: 68.89 kB / 1.123 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/1.205, allocations: 4.359 kB / 1.123 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/1.206, allocations: 92.7 kB / 1.123 GB, free: 29.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.817e-05/1.206, allocations: 21.41 kB / 1.123 GB, free: 29.09 MB / 0.698 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 () * Number of clocked 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.0002906/1.206, allocations: 169.7 kB / 1.124 GB, free: 28.96 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.506e-05/1.206, allocations: 19.56 kB / 1.124 GB, free: 28.95 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.732e-05/1.207, allocations: 19.91 kB / 1.124 GB, free: 28.94 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/1.207, allocations: 3.844 kB / 1.124 GB, free: 28.94 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/1.207, allocations: 3.953 kB / 1.124 GB, free: 28.94 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.207, allocations: 0 / 1.124 GB, free: 28.94 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/1.208, allocations: 0.6853 MB / 1.124 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/1.208, allocations: 0 / 1.124 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.798e-05/1.208, allocations: 14.86 kB / 1.124 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/1.208, allocations: 0 / 1.124 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.277e-05/1.208, allocations: 18.38 kB / 1.124 GB, free: 28.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/1.208, allocations: 0 / 1.124 GB, free: 28.61 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.208, allocations: 0 / 1.124 GB, free: 28.61 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/1.209, allocations: 473.4 kB / 1.125 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/1.209, allocations: 88.89 kB / 1.125 GB, free: 28.36 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-05/1.209, allocations: 17.56 kB / 1.125 GB, free: 28.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/1.21, allocations: 18.66 kB / 1.125 GB, free: 28.36 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/1.21, allocations: 16.81 kB / 1.125 GB, free: 28.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/1.21, allocations: 13.22 kB / 1.125 GB, free: 28.36 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001015/1.21, allocations: 107.1 kB / 1.125 GB, free: 28.29 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.71e-07/1.21, allocations: 0 / 1.125 GB, free: 28.29 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005779/1.21, allocations: 69.53 kB / 1.125 GB, free: 28.28 MB / 0.698 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]) * Number of clocked states: 0 () * 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.001518/1.212, allocations: 1.045 MB / 1.126 GB, free: 27.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001205/1.213, allocations: 465.8 kB / 1.127 GB, free: 27.45 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.213, allocations: 0 / 1.127 GB, free: 27.45 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003631/1.214, allocations: 117.1 kB / 1.127 GB, free: 27.45 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/1.214, allocations: 35.42 kB / 1.127 GB, free: 27.45 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/1.216, allocations: 1.51 MB / 1.128 GB, free: 26.09 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/1.216, allocations: 0.7262 MB / 1.129 GB, free: 25.38 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001473/1.216, allocations: 23.22 kB / 1.129 GB, free: 25.38 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/1.216, allocations: 48.89 kB / 1.129 GB, free: 25.37 MB / 0.698 GB Notification: Performance of SimCode: time 1.222e-06/1.216, allocations: 0 / 1.129 GB, free: 25.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03114/1.248, allocations: 4.814 MB / 1.134 GB, free: 24.77 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/1.248, allocations: 193.1 kB / 1.134 GB, free: 24.54 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.601/3.848, allocations: 2.531 kB / 1.134 GB, free: 24.54 MB / 0.698 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)