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 1.482/1.482, allocations: 287.4 MB / 302.6 MB, free: 8.219 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.0009111/0.0009111, allocations: 182.5 kB / 371.1 MB, free: 10.83 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.257/1.257, allocations: 205.4 MB / 0.6298 GB, free: 10.57 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.0007039/0.000704, allocations: 93.84 kB / 0.7431 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003329, allocations: 12.73 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1756, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0008552/0.1765, allocations: 0.5755 MB / 0.9793 GB, free: 27.52 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1778, allocations: 1.282 MB / 0.9806 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.428e-05/0.1778, allocations: 0 / 0.9806 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.073e-05/0.1779, allocations: 7.922 kB / 0.9806 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.178, allocations: 31.78 kB / 0.9806 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.1786, allocations: 234.2 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.1788, allocations: 231.5 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.1789, allocations: 33.06 kB / 0.9811 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.179, allocations: 103.8 kB / 0.9812 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.1792, allocations: 107.7 kB / 0.9813 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.1792, allocations: 15.94 kB / 0.9813 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.101e-05/0.1793, allocations: 19.98 kB / 0.9813 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.1793, allocations: 31.91 kB / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.828e-05/0.1794, allocations: 57.58 kB / 0.9814 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.1796, allocations: 183.8 kB / 0.9816 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1796, allocations: 0 / 0.9816 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.402e-06/0.1796, allocations: 0 / 0.9816 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.1796, allocations: 4 kB / 0.9816 GB, free: 25.18 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.000604/0.1802, allocations: 0.491 MB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.1802, allocations: 8.031 kB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/0.1803, allocations: 46.73 kB / 0.9821 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.1803, allocations: 24.75 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.1805, allocations: 230.6 kB / 0.9823 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1806, allocations: 16.36 kB / 0.9824 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.1806, allocations: 16.38 kB / 0.9824 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.1809, allocations: 190.8 kB / 0.9826 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1809, allocations: 3.938 kB / 0.9826 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.1809, allocations: 3.938 kB / 0.9826 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.181, allocations: 4 kB / 0.9826 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.1811, allocations: 96.11 kB / 0.9827 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.1816, allocations: 480.5 kB / 0.9831 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.1818, allocations: 146.4 kB / 0.9833 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.1819, allocations: 96.81 kB / 0.9834 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.1819, allocations: 0 / 0.9834 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.1822, allocations: 208.9 kB / 0.9836 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.1822, allocations: 0 / 0.9836 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0006338/0.1828, allocations: 463.3 kB / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.1829, allocations: 63.39 kB / 0.9841 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.663e-05/0.183, allocations: 137.9 kB / 0.9842 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.183, allocations: 41.7 kB / 0.9842 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.1831, allocations: 104.6 kB / 0.9843 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.1831, allocations: 71.17 kB / 0.9844 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.1831, allocations: 8 kB / 0.9844 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.1832, allocations: 326.8 kB / 0.9847 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.1834, allocations: 152.7 kB / 0.9849 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.1837, allocations: 205.2 kB / 0.9851 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.1841, allocations: 370.3 kB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1841, allocations: 0 / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006248/0.1847, allocations: 0.4899 MB / 0.9859 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.1848, allocations: 67.53 kB / 0.986 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1848, allocations: 4 kB / 0.986 GB, free: 20.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1848, allocations: 7.984 kB / 0.986 GB, free: 20.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.185, allocations: 47.92 kB / 0.986 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.185, allocations: 11.98 kB / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.1854, allocations: 97.81 kB / 0.9861 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.1854, allocations: 23.98 kB / 0.9861 GB, free: 20.18 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.0001137/0.1856, allocations: 173.7 kB / 0.9863 GB, free: 20 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.1856, allocations: 15.81 kB / 0.9863 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.1856, allocations: 9.875 kB / 0.9863 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1856, allocations: 4 kB / 0.9863 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1856, allocations: 0 / 0.9863 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1856, allocations: 11.86 kB / 0.9863 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005584/0.1862, allocations: 0.6662 MB / 0.987 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1862, allocations: 0 / 0.987 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-05/0.1863, allocations: 7.938 kB / 0.987 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1863, allocations: 7.984 kB / 0.987 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1863, allocations: 15.86 kB / 0.987 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1863, allocations: 0 / 0.987 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1863, allocations: 0 / 0.987 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.1868, allocations: 455.1 kB / 0.9875 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.114e-05/0.1868, allocations: 93 kB / 0.9875 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.1868, allocations: 23.92 kB / 0.9876 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.1869, allocations: 7.984 kB / 0.9876 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.187, allocations: 19.97 kB / 0.9876 GB, free: 18.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.187, allocations: 19.98 kB / 0.9876 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.647e-05/0.1871, allocations: 99.27 kB / 0.9877 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1871, allocations: 0 / 0.9877 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002986/0.1874, allocations: 71.98 kB / 0.9878 GB, free: 18.4 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.0006211/0.188, allocations: 1.016 MB / 0.9888 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.1885, allocations: 466.8 kB / 0.9892 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1885, allocations: 0 / 0.9892 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.1887, allocations: 120.7 kB / 0.9893 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.189, allocations: 36.16 kB / 0.9894 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.1905, allocations: 1.288 MB / 0.9906 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.1907, allocations: 0.7245 MB / 0.9913 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.03e-05/0.1907, allocations: 21.55 kB / 0.9914 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.096e-05/0.1908, allocations: 43.42 kB / 0.9914 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.1908, allocations: 0 / 0.9914 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01359/0.2044, allocations: 4.803 MB / 0.9961 GB, free: 9.949 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001305/0.2046, allocations: 209.2 kB / 0.9963 GB, free: 9.707 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/1.824, allocations: 64 / 0.9963 GB, free: 9.707 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)