Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.451/1.451, allocations: 251.9 MB / 266.8 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 175.3 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.147/2.147, allocations: 205.4 MB / 0.5775 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009298/0.0009297, allocations: 96.48 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004022, allocations: 11.47 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2651, allocations: 106.3 MB / 0.9002 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1684/0.4336, allocations: 132.3 MB / 1.029 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4339, allocations: 71.95 kB / 1.029 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.4442, allocations: 3.672 MB / 1.033 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4442, allocations: 4 kB / 1.033 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.4443, allocations: 4 kB / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007395/0.445, allocations: 468.1 kB / 1.033 GB, free: 7.184 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.4451, allocations: 12.03 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.4451, allocations: 50.55 kB / 1.033 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/0.4452, allocations: 23.75 kB / 1.034 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.4455, allocations: 214.8 kB / 1.034 GB, free: 6.84 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.4456, allocations: 16 kB / 1.034 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.559e-05/0.4456, allocations: 19.98 kB / 1.034 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.446, allocations: 189.5 kB / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.4461, allocations: 0 / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.4461, allocations: 11.98 kB / 1.034 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.4461, allocations: 7.953 kB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.4464, allocations: 103.9 kB / 1.034 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.447, allocations: 432.4 kB / 1.034 GB, free: 6.02 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.4473, allocations: 161.4 kB / 1.035 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.4473, allocations: 4 kB / 1.035 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003227/0.4477, allocations: 205 kB / 1.035 GB, free: 5.637 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.4477, allocations: 8 kB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0008117/0.4485, allocations: 450.2 kB / 1.035 GB, free: 5.188 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4486, allocations: 63.33 kB / 1.035 GB, free: 5.113 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.4487, allocations: 140.4 kB / 1.035 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.4487, allocations: 33.7 kB / 1.035 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.4488, allocations: 104.6 kB / 1.036 GB, free: 4.824 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.4488, allocations: 75.23 kB / 1.036 GB, free: 4.75 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.4489, allocations: 4 kB / 1.036 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.449, allocations: 326.8 kB / 1.036 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.4492, allocations: 100.7 kB / 1.036 GB, free: 4.316 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.4494, allocations: 172.3 kB / 1.036 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.4496, allocations: 117.3 kB / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4496, allocations: 4 kB / 1.036 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005127/0.4501, allocations: 343.4 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4502, allocations: 10.97 kB / 1.037 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.4502, allocations: 0 / 1.037 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.4502, allocations: 4 kB / 1.037 GB, free: 3.652 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.4505, allocations: 71.83 kB / 1.037 GB, free: 3.582 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.4505, allocations: 4 kB / 1.037 GB, free: 3.578 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.4507, allocations: 51.83 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.4507, allocations: 12 kB / 1.037 GB, free: 3.516 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.0001485/0.4509, allocations: 161.7 kB / 1.037 GB, free: 3.348 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.4509, allocations: 19.81 kB / 1.037 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.4509, allocations: 17.86 kB / 1.037 GB, free: 3.316 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.4509, allocations: 4 kB / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.451, allocations: 0 / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.451, allocations: 4 kB / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.452, allocations: 0.7372 MB / 1.038 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.452, allocations: 4 kB / 1.038 GB, free: 2.512 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.111e-05/0.452, allocations: 4 kB / 1.038 GB, free: 2.508 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4521, allocations: 7.984 kB / 1.038 GB, free: 2.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.4521, allocations: 11.98 kB / 1.038 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4521, allocations: 0 / 1.038 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4521, allocations: 3.938 kB / 1.038 GB, free: 2.484 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000574/0.4527, allocations: 471.3 kB / 1.038 GB, free: 2.008 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.4527, allocations: 88.92 kB / 1.038 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.4528, allocations: 23.97 kB / 1.038 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.453, allocations: 15.98 kB / 1.038 GB, free: 1.863 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.476e-05/0.4531, allocations: 31.98 kB / 1.038 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.4531, allocations: 15.98 kB / 1.038 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.009e-05/0.4532, allocations: 105.5 kB / 1.038 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4532, allocations: 7.938 kB / 1.038 GB, free: 1.707 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002969/0.4535, allocations: 55.98 kB / 1.039 GB, free: 1.652 MB / 0.6823 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0008573/0.4543, allocations: 1.019 MB / 1.04 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004366/0.4548, allocations: 259.7 kB / 1.04 GB, free: 360 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4548, allocations: 0 / 1.04 GB, free: 360 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.455, allocations: 124.3 kB / 1.04 GB, free: 236 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.4553, allocations: 35.09 kB / 1.04 GB, free: 204 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.4564, allocations: 1.664 MB / 1.042 GB, free: 14.45 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.4567, allocations: 0.7287 MB / 1.042 GB, free: 13.69 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.251e-05/0.4568, allocations: 21.95 kB / 1.042 GB, free: 13.67 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.541e-05/0.4568, allocations: 43.42 kB / 1.042 GB, free: 13.63 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/0.4569, allocations: 0 / 1.042 GB, free: 13.63 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.4707, allocations: 4.016 MB / 1.046 GB, free: 9.789 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.4709, allocations: 204.2 kB / 1.046 GB, free: 9.551 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.171, allocations: 0 / 1.046 GB, free: 9.551 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)