Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.78/1.78, allocations: 288.2 MB / 303.2 MB, free: 8.121 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.001193/0.001193, allocations: 181.8 kB / 371.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 0.6305 GB, free: 10.04 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.0009072/0.000907, allocations: 105.4 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 12.34 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.187, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6232/0.8103, allocations: 138.7 MB / 1.115 GB, free: 16.36 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.8105, allocations: 75.97 kB / 1.115 GB, free: 16.36 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01488/0.8254, allocations: 5.52 MB / 1.12 GB, free: 31.77 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8254, allocations: 4 kB / 1.12 GB, free: 31.76 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.276e-05/0.8255, allocations: 3.875 kB / 1.12 GB, free: 31.76 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.0007072/0.8262, allocations: 0.5007 MB / 1.121 GB, free: 31.29 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.8262, allocations: 11.7 kB / 1.121 GB, free: 31.29 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.706e-05/0.8263, allocations: 51.77 kB / 1.121 GB, free: 31.25 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.8264, allocations: 22.17 kB / 1.121 GB, free: 31.24 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.8267, allocations: 237.9 kB / 1.121 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.8267, allocations: 17.94 kB / 1.121 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.8268, allocations: 22.03 kB / 1.121 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003419/0.8271, allocations: 193.8 kB / 1.121 GB, free: 30.99 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.8271, allocations: 7.938 kB / 1.121 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.8272, allocations: 9.625 kB / 1.121 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.8272, allocations: 3.875 kB / 1.121 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.8274, allocations: 91.69 kB / 1.122 GB, free: 30.98 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.828, allocations: 494.2 kB / 1.122 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.8283, allocations: 138.4 kB / 1.122 GB, free: 30.67 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.8283, allocations: 3.047 kB / 1.122 GB, free: 30.67 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.8287, allocations: 214.5 kB / 1.122 GB, free: 30.61 MB / 0.698 GB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.8287, allocations: 0 / 1.122 GB, free: 30.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.0008082/0.8295, allocations: 473.1 kB / 1.123 GB, free: 30.56 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.8295, allocations: 65.25 kB / 1.123 GB, free: 30.49 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.499e-05/0.8297, allocations: 121.9 kB / 1.123 GB, free: 30.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.8297, allocations: 47.94 kB / 1.123 GB, free: 30.37 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.8298, allocations: 102.7 kB / 1.123 GB, free: 30.29 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.8299, allocations: 68.09 kB / 1.123 GB, free: 30.25 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.8299, allocations: 14.59 kB / 1.123 GB, free: 30.25 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.83, allocations: 328.7 kB / 1.124 GB, free: 29.94 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.8303, allocations: 141.7 kB / 1.124 GB, free: 29.94 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002682/0.8306, allocations: 210.2 kB / 1.124 GB, free: 29.87 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.8309, allocations: 215.8 kB / 1.124 GB, free: 29.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.8309, allocations: 0 / 1.124 GB, free: 29.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007142/0.8316, allocations: 491.8 kB / 1.125 GB, free: 29.69 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.986e-05/0.8317, allocations: 69.55 kB / 1.125 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.8317, allocations: 0 / 1.125 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.8317, allocations: 4.062 kB / 1.125 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.8319, allocations: 63.47 kB / 1.125 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.832, allocations: 15.7 kB / 1.125 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003828/0.8323, allocations: 96.58 kB / 1.125 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.8324, allocations: 25.06 kB / 1.125 GB, free: 29.59 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.0001659/0.8326, allocations: 167.1 kB / 1.125 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.8326, allocations: 15.56 kB / 1.125 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.8326, allocations: 13.44 kB / 1.125 GB, free: 29.45 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.8327, allocations: 0 / 1.125 GB, free: 29.45 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.8327, allocations: 7.844 kB / 1.125 GB, free: 29.45 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.8327, allocations: 6.812 kB / 1.125 GB, free: 29.45 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007177/0.8334, allocations: 0.6813 MB / 1.126 GB, free: 29.13 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.8334, allocations: 0 / 1.126 GB, free: 29.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-05/0.8335, allocations: 14.34 kB / 1.126 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.8335, allocations: 0 / 1.126 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.8335, allocations: 20.47 kB / 1.126 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.8335, allocations: 7.797 kB / 1.126 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8335, allocations: 0 / 1.126 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.8341, allocations: 467.8 kB / 1.126 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.8341, allocations: 84.86 kB / 1.126 GB, free: 28.88 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.8342, allocations: 19.11 kB / 1.126 GB, free: 28.87 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.8343, allocations: 20.23 kB / 1.126 GB, free: 28.87 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.8344, allocations: 18.91 kB / 1.126 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.8344, allocations: 16.11 kB / 1.126 GB, free: 28.86 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.73e-05/0.8345, allocations: 105.8 kB / 1.126 GB, free: 28.79 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8345, allocations: 0 / 1.126 GB, free: 28.79 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003557/0.8348, allocations: 73.66 kB / 1.126 GB, free: 28.79 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.0008958/0.8357, allocations: 1.045 MB / 1.127 GB, free: 28.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005973/0.8363, allocations: 452.2 kB / 1.128 GB, free: 27.96 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8364, allocations: 4.062 kB / 1.128 GB, free: 27.96 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.8365, allocations: 121.7 kB / 1.128 GB, free: 27.95 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.8368, allocations: 32.25 kB / 1.128 GB, free: 27.95 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.838, allocations: 1.508 MB / 1.13 GB, free: 26.59 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.8383, allocations: 0.7231 MB / 1.13 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.517e-05/0.8383, allocations: 16.2 kB / 1.13 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.8384, allocations: 54.62 kB / 1.13 GB, free: 25.88 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/0.8384, allocations: 0 / 1.13 GB, free: 25.88 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.8544, allocations: 4.825 MB / 1.135 GB, free: 24.4 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.8546, allocations: 203.5 kB / 1.135 GB, free: 24.16 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.528, allocations: 4 kB / 1.135 GB, free: 24.16 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)