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.752/1.752, allocations: 289.9 MB / 297.4 MB, free: 6.371 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.001462/0.001461, allocations: 172.9 kB / 366.7 MB, free: 1.652 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.834/1.834, allocations: 205.2 MB / 0.626 GB, free: 7.168 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.0009214/0.0009212, allocations: 90.34 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.738e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6759/0.6759, allocations: 116.3 MB / 0.9734 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1967/0.8727, allocations: 138.9 MB / 1.109 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.873, allocations: 71.95 kB / 1.109 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01717/0.8902, allocations: 5.485 MB / 1.114 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8902, allocations: 0 / 1.114 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.8902, allocations: 4 kB / 1.114 GB, free: 5.695 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.0007176/0.891, allocations: 494.9 kB / 1.115 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.891, allocations: 11.97 kB / 1.115 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.939e-05/0.8911, allocations: 25.03 kB / 1.115 GB, free: 5.113 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.8915, allocations: 239.1 kB / 1.115 GB, free: 4.84 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.8915, allocations: 8 kB / 1.115 GB, free: 4.832 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.8916, allocations: 19.98 kB / 1.115 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000172/0.8918, allocations: 76.39 kB / 1.115 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.892, allocations: 172.8 kB / 1.115 GB, free: 4.566 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.892, allocations: 0 / 1.115 GB, free: 4.566 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.8921, allocations: 7.922 kB / 1.115 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.8921, allocations: 4 kB / 1.115 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006293/0.8927, allocations: 453.7 kB / 1.116 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.8929, allocations: 122.9 kB / 1.116 GB, free: 3.945 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.8931, allocations: 85.97 kB / 1.116 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.8931, allocations: 192 / 1.116 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.8934, allocations: 204.3 kB / 1.116 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.8934, allocations: 0 / 1.116 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0006093/0.894, allocations: 353.3 kB / 1.117 GB, free: 3.297 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.735e-05/0.8941, allocations: 59.36 kB / 1.117 GB, free: 3.227 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.8942, allocations: 132.8 kB / 1.117 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.8943, allocations: 33.7 kB / 1.117 GB, free: 3.055 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/0.8943, allocations: 107 kB / 1.117 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.8944, allocations: 67.25 kB / 1.117 GB, free: 2.879 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.8945, allocations: 11.98 kB / 1.117 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.8946, allocations: 330.8 kB / 1.117 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.8948, allocations: 120.4 kB / 1.117 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.8951, allocations: 176.9 kB / 1.118 GB, free: 2.223 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.8956, allocations: 153.2 kB / 1.118 GB, free: 2.074 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.8956, allocations: 4 kB / 1.118 GB, free: 2.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000792/0.8964, allocations: 399.4 kB / 1.118 GB, free: 1.676 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.8965, allocations: 67.39 kB / 1.118 GB, free: 1.598 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.8965, allocations: 8.125 kB / 1.118 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.8965, allocations: 0 / 1.118 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.8968, allocations: 67.84 kB / 1.118 GB, free: 1.523 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.8968, allocations: 4 kB / 1.118 GB, free: 1.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003818/0.8972, allocations: 87.7 kB / 1.118 GB, free: 1.434 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.8972, allocations: 19.98 kB / 1.118 GB, free: 1.414 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.0001614/0.8974, allocations: 154.2 kB / 1.119 GB, free: 1.258 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000463/0.8979, allocations: 333.4 kB / 1.119 GB, free: 0.9258 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.8979, allocations: 15.81 kB / 1.119 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.898, allocations: 17.95 kB / 1.119 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.898, allocations: 7.938 kB / 1.119 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.898, allocations: 3.953 kB / 1.119 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.898, allocations: 0 / 1.119 GB, free: 0.8828 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006642/0.8987, allocations: 0.6048 MB / 1.119 GB, free: 240 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.8987, allocations: 5.938 kB / 1.119 GB, free: 236 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.8987, allocations: 11.98 kB / 1.12 GB, free: 224 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.8987, allocations: 1.875 kB / 1.12 GB, free: 224 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.8988, allocations: 7.984 kB / 1.12 GB, free: 216 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.8988, allocations: 7.953 kB / 1.12 GB, free: 208 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8988, allocations: 0 / 1.12 GB, free: 208 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005337/0.8993, allocations: 439.3 kB / 1.12 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.8994, allocations: 96.86 kB / 1.12 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.8995, allocations: 15.98 kB / 1.12 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.8996, allocations: 11.98 kB / 1.12 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.8997, allocations: 27.92 kB / 1.12 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.8997, allocations: 11.98 kB / 1.12 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.106e-05/0.8998, allocations: 100.8 kB / 1.12 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8998, allocations: 0 / 1.12 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003312/0.9001, allocations: 64 kB / 1.12 GB, free: 15.42 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]) * 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/0.901, allocations: 1.012 MB / 1.121 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005718/0.9016, allocations: 410.6 kB / 1.122 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9016, allocations: 0 / 1.122 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.9018, allocations: 104.4 kB / 1.122 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.9021, allocations: 33.95 kB / 1.122 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006567/0.9027, allocations: 259.6 kB / 1.122 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.9031, allocations: 0.7207 MB / 1.123 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.17e-05/0.9032, allocations: 26.08 kB / 1.123 GB, free: 12.76 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.9033, allocations: 50.58 kB / 1.123 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/0.9033, allocations: 0 / 1.123 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.9305, allocations: 4.398 MB / 1.127 GB, free: 8.43 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.9308, allocations: 161.9 kB / 1.127 GB, free: 8.23 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.737, allocations: 0 / 1.127 GB, free: 8.23 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)