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.605/2.605, allocations: 287.3 MB / 302.3 MB, free: 8.227 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.001511/0.001511, allocations: 181.2 kB / 370.8 MB, free: 10.88 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.098/2.098, allocations: 205.4 MB / 0.6295 GB, free: 10.64 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.001089/0.001089, allocations: 102.3 kB / 0.7428 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000745/0.0007453, allocations: 12.67 kB / 0.8657 GB, free: 140 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2349, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001542/0.2366, allocations: 0.5755 MB / 0.9789 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002962/0.2396, allocations: 1.247 MB / 0.9801 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.2397, allocations: 0 / 0.9801 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.2398, allocations: 15.86 kB / 0.9801 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.2401, allocations: 27.94 kB / 0.9801 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.2416, allocations: 241.3 kB / 0.9803 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000324/0.2419, allocations: 147.8 kB / 0.9805 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2421, allocations: 29.05 kB / 0.9805 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.2424, allocations: 99.77 kB / 0.9806 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.2427, allocations: 103.7 kB / 0.9807 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.132e-05/0.2428, allocations: 12 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.243, allocations: 39.84 kB / 0.9808 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.015e-05/0.2431, allocations: 27.91 kB / 0.9808 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.2432, allocations: 57.62 kB / 0.9808 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.2436, allocations: 179.8 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2436, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.255e-06/0.2437, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2437, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 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.001244/0.2449, allocations: 0.4908 MB / 0.9815 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.245, allocations: 12.02 kB / 0.9815 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.821e-05/0.2451, allocations: 42.55 kB / 0.9815 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.2453, allocations: 23.8 kB / 0.9816 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.2457, allocations: 234.7 kB / 0.9818 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.2458, allocations: 16 kB / 0.9818 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.2459, allocations: 19.98 kB / 0.9818 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007495/0.2467, allocations: 182.2 kB / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2467, allocations: 0 / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.2468, allocations: 11.98 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2468, allocations: 0 / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005559/0.2474, allocations: 92.17 kB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.2485, allocations: 476.6 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.2491, allocations: 138.6 kB / 0.9827 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.2492, allocations: 3.938 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000767/0.25, allocations: 211.3 kB / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 5.029e-06/0.25, allocations: 0 / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.002195/0.2522, allocations: 0.6071 MB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.2523, allocations: 59.39 kB / 0.9835 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.2525, allocations: 148.3 kB / 0.9837 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.2527, allocations: 41.7 kB / 0.9837 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.2528, allocations: 104.7 kB / 0.9838 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.2529, allocations: 75.17 kB / 0.9839 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.853e-05/0.253, allocations: 8 kB / 0.9839 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.2531, allocations: 326.8 kB / 0.9842 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007916/0.2539, allocations: 148.7 kB / 0.9844 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008292/0.2548, allocations: 209.2 kB / 0.9846 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008194/0.2557, allocations: 212.4 kB / 0.9848 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.2557, allocations: 3.938 kB / 0.9848 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002109/0.2578, allocations: 0.4976 MB / 0.9852 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.444e-05/0.2579, allocations: 67.39 kB / 0.9853 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.258, allocations: 8 kB / 0.9853 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.258, allocations: 4 kB / 0.9853 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.2587, allocations: 55.86 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.2587, allocations: 4 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.2601, allocations: 99.78 kB / 0.9855 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.2602, allocations: 23.98 kB / 0.9855 GB, free: 20.59 MB / 0.6198 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 (39): * Single equations (assignments): 35 * Array equations: 2 * 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.0004044/0.2607, allocations: 169.8 kB / 0.9857 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2608, allocations: 15.89 kB / 0.9857 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.725e-05/0.2609, allocations: 9.875 kB / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.2609, allocations: 4 kB / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.261, allocations: 7.891 kB / 0.9857 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.261, allocations: 0 / 0.9857 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.2633, allocations: 0.6661 MB / 0.9863 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.2634, allocations: 0 / 0.9863 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.2635, allocations: 4 kB / 0.9863 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.659e-06/0.2635, allocations: 4 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.2636, allocations: 11.98 kB / 0.9864 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.994e-06/0.2636, allocations: 3.953 kB / 0.9864 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.2636, allocations: 3.984 kB / 0.9864 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.2649, allocations: 463.7 kB / 0.9868 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.265, allocations: 88.92 kB / 0.9869 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.2651, allocations: 15.98 kB / 0.9869 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.2654, allocations: 11.98 kB / 0.9869 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.283e-05/0.2656, allocations: 15.94 kB / 0.9869 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.629e-05/0.2657, allocations: 23.98 kB / 0.987 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.809e-05/0.2658, allocations: 104.3 kB / 0.9871 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.21e-07/0.2658, allocations: 0 / 0.9871 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007297/0.2665, allocations: 68 kB / 0.9871 GB, free: 18.82 MB / 0.6198 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[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.001783/0.2683, allocations: 1.031 MB / 0.9881 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001058/0.2694, allocations: 454.9 kB / 0.9886 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2694, allocations: 0 / 0.9886 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.2698, allocations: 119.9 kB / 0.9887 GB, free: 17.18 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.2702, allocations: 32.12 kB / 0.9887 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2715, allocations: 1.511 MB / 0.9902 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001795/0.2717, allocations: 0.7206 MB / 0.9909 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000108/0.2718, allocations: 25.53 kB / 0.9909 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.272, allocations: 43.42 kB / 0.991 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of SimCode: time 1.042e-06/0.272, allocations: 0 / 0.991 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.3053, allocations: 4.766 MB / 0.9956 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000268/0.3056, allocations: 203.5 kB / 0.9958 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.608/2.914, allocations: 0 / 0.9958 GB, free: 9.938 MB / 0.6198 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)