Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.784/1.784, allocations: 292.6 MB / 307.5 MB, free: 5.203 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.00101/0.00101, allocations: 184.2 kB / 377.1 MB, free: 1.535 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.552/1.552, allocations: 205.4 MB / 0.6366 GB, free: 8.543 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.0009216/0.0009216, allocations: 95.62 kB / 0.7509 GB, free: 62.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003661, allocations: 8 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2819, allocations: 116.3 MB / 0.9884 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8558/1.138, allocations: 139.6 MB / 1.125 GB, free: 35.12 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/1.138, allocations: 72.53 kB / 1.125 GB, free: 35.07 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.0147/1.153, allocations: 5.534 MB / 1.13 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.973e-06/1.153, allocations: 0 / 1.13 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.265e-05/1.153, allocations: 4 kB / 1.13 GB, free: 31.12 MB / 0.7292 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.0006552/1.154, allocations: 0.5052 MB / 1.131 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/1.154, allocations: 12.02 kB / 1.131 GB, free: 30.56 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/1.154, allocations: 47.05 kB / 1.131 GB, free: 30.51 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.537e-05/1.154, allocations: 21.88 kB / 1.131 GB, free: 30.49 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/1.154, allocations: 236.4 kB / 1.131 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/1.154, allocations: 27.09 kB / 1.131 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/1.154, allocations: 16 kB / 1.131 GB, free: 30.21 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/1.155, allocations: 190.2 kB / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/1.155, allocations: 0 / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/1.155, allocations: 8.688 kB / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/1.155, allocations: 4 kB / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/1.155, allocations: 101.4 kB / 1.131 GB, free: 29.98 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/1.155, allocations: 489.3 kB / 1.132 GB, free: 29.56 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/1.156, allocations: 144.5 kB / 1.132 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/1.156, allocations: 192 / 1.132 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/1.156, allocations: 217.9 kB / 1.132 GB, free: 29.26 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=28): time 1.793e-06/1.156, allocations: 0 / 1.132 GB, free: 29.26 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28): time 0.0007751/1.157, allocations: 473.2 kB / 1.133 GB, free: 28.86 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/1.157, allocations: 63.41 kB / 1.133 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/1.157, allocations: 119.5 kB / 1.133 GB, free: 28.67 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/1.157, allocations: 47.06 kB / 1.133 GB, free: 28.62 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/1.157, allocations: 104.1 kB / 1.133 GB, free: 28.52 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/1.157, allocations: 66.67 kB / 1.133 GB, free: 28.46 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/1.157, allocations: 16 kB / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.077e-05/1.157, allocations: 333.1 kB / 1.133 GB, free: 28.11 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000272/1.157, allocations: 138.2 kB / 1.134 GB, free: 28 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/1.158, allocations: 207.5 kB / 1.134 GB, free: 27.8 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/1.158, allocations: 218.6 kB / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.158, allocations: 0 / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007476/1.159, allocations: 491.1 kB / 1.134 GB, free: 27.14 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.746e-05/1.159, allocations: 71.91 kB / 1.134 GB, free: 27.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.159, allocations: 0.9844 kB / 1.134 GB, free: 27.06 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/1.159, allocations: 4 kB / 1.134 GB, free: 27.06 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/1.159, allocations: 60.72 kB / 1.135 GB, free: 27.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/1.159, allocations: 13.23 kB / 1.135 GB, free: 27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/1.16, allocations: 96.86 kB / 1.135 GB, free: 26.92 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/1.16, allocations: 21.44 kB / 1.135 GB, free: 26.9 MB / 0.7292 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.000154/1.16, allocations: 170.8 kB / 1.135 GB, free: 26.73 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/1.16, allocations: 17.17 kB / 1.135 GB, free: 26.72 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/1.16, allocations: 15 kB / 1.135 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/1.16, allocations: 0 / 1.135 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.16, allocations: 8.797 kB / 1.135 GB, free: 26.7 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.16, allocations: 5.266 kB / 1.135 GB, free: 26.7 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007844/1.161, allocations: 0.6843 MB / 1.136 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.161, allocations: 0 / 1.136 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.439e-05/1.161, allocations: 10.38 kB / 1.136 GB, free: 26.03 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/1.161, allocations: 4 kB / 1.136 GB, free: 26.03 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/1.161, allocations: 18.5 kB / 1.136 GB, free: 26.02 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/1.161, allocations: 4.469 kB / 1.136 GB, free: 26.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.161, allocations: 0 / 1.136 GB, free: 26.01 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005965/1.162, allocations: 468.4 kB / 1.136 GB, free: 25.59 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/1.162, allocations: 85.67 kB / 1.136 GB, free: 25.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.961e-05/1.162, allocations: 16.83 kB / 1.136 GB, free: 25.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/1.162, allocations: 16.27 kB / 1.136 GB, free: 25.46 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/1.162, allocations: 18.8 kB / 1.136 GB, free: 25.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/1.162, allocations: 19.08 kB / 1.136 GB, free: 25.44 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.26e-05/1.162, allocations: 105.8 kB / 1.136 GB, free: 25.34 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.41e-07/1.162, allocations: 0 / 1.136 GB, free: 25.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000361/1.162, allocations: 78.91 kB / 1.136 GB, free: 25.27 MB / 0.7292 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.0008959/1.163, allocations: 1.046 MB / 1.137 GB, free: 24.25 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006344/1.164, allocations: 454.4 kB / 1.138 GB, free: 23.82 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/1.164, allocations: 4.062 kB / 1.138 GB, free: 23.82 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/1.164, allocations: 126.4 kB / 1.138 GB, free: 23.71 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/1.164, allocations: 28.19 kB / 1.138 GB, free: 23.69 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/1.166, allocations: 1.507 MB / 1.139 GB, free: 22.17 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/1.166, allocations: 0.7246 MB / 1.14 GB, free: 21.43 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.47e-05/1.166, allocations: 19.69 kB / 1.14 GB, free: 21.42 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/1.166, allocations: 52.92 kB / 1.14 GB, free: 21.37 MB / 0.7292 GB Notification: Performance of SimCode: time 3.91e-07/1.166, allocations: 0 / 1.14 GB, free: 21.37 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/1.184, allocations: 4.811 MB / 1.145 GB, free: 18.72 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/1.184, allocations: 192.6 kB / 1.145 GB, free: 18.48 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/3.161, allocations: 0 / 1.145 GB, free: 18.48 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)