Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009303/0.0009303, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009471/0.0009471, allocations: 198.5 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.164/1.164, allocations: 205.1 MB / 222 MB, free: 5.012 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.48/1.48, allocations: 292.3 MB / 0.5484 GB, free: 13.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 70.19 kB / 0.6709 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1861, allocations: 114.5 MB / 0.7828 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002173/0.1883, allocations: 1.457 MB / 0.7842 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004951/0.1888, allocations: 293.1 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.122e-05/0.1888, allocations: 0 / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.48e-05/0.1889, allocations: 3.938 kB / 0.7845 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.415e-05/0.189, allocations: 3.938 kB / 0.7845 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001102/0.1891, allocations: 35.91 kB / 0.7846 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.849e-05/0.1892, allocations: 55.84 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.701e-05/0.1893, allocations: 7.938 kB / 0.7846 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.139e-05/0.1894, allocations: 23.97 kB / 0.7846 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.105e-05/0.1895, allocations: 31.84 kB / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.1895, allocations: 4 kB / 0.7847 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.1895, allocations: 0 / 0.7847 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.1896, allocations: 11.98 kB / 0.7847 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.708e-05/0.1896, allocations: 31.81 kB / 0.7847 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.576e-05/0.1897, allocations: 60.05 kB / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.1897, allocations: 0 / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.41e-07/0.1897, allocations: 0 / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.616e-06/0.1897, allocations: 0 / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004216/0.1902, allocations: 397 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.1902, allocations: 8.031 kB / 0.7852 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.202e-05/0.1902, allocations: 42.67 kB / 0.7852 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.1903, allocations: 12.84 kB / 0.7852 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.1904, allocations: 172.4 kB / 0.7854 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1904, allocations: 4.375 kB / 0.7854 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.1904, allocations: 4.375 kB / 0.7854 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.1906, allocations: 66.23 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.1906, allocations: 3.938 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-06/0.1906, allocations: 0 / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1906, allocations: 4 kB / 0.7855 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.1907, allocations: 43.91 kB / 0.7855 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003685/0.1911, allocations: 296.7 kB / 0.7858 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.1912, allocations: 70.5 kB / 0.7859 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.493e-05/0.1913, allocations: 56.89 kB / 0.7859 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.1913, allocations: 0 / 0.7859 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.1915, allocations: 125.1 kB / 0.786 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.1915, allocations: 3.938 kB / 0.786 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003559/0.1919, allocations: 199.2 kB / 0.7862 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.1919, allocations: 114.8 kB / 0.7863 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.356e-05/0.192, allocations: 105.8 kB / 0.7864 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.192, allocations: 37.69 kB / 0.7865 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.46e-05/0.1921, allocations: 88.14 kB / 0.7865 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.1921, allocations: 27.7 kB / 0.7866 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.1922, allocations: 33.72 kB / 0.7866 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.1923, allocations: 322.8 kB / 0.7869 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.1924, allocations: 35.97 kB / 0.7869 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.1925, allocations: 108.5 kB / 0.7871 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.1927, allocations: 211.8 kB / 0.7873 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1927, allocations: 0 / 0.7873 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002792/0.193, allocations: 203.2 kB / 0.7874 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.193, allocations: 33.73 kB / 0.7875 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.193, allocations: 4 kB / 0.7875 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1931, allocations: 4 kB / 0.7875 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.1932, allocations: 24.02 kB / 0.7875 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1932, allocations: 4 kB / 0.7875 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.861e-05/0.1932, allocations: 19.83 kB / 0.7875 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.1933, allocations: 11.98 kB / 0.7875 GB, free: 8.66 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.1934, allocations: 172.1 kB / 0.7877 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.1934, allocations: 11.91 kB / 0.7877 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.068e-05/0.1934, allocations: 12.36 kB / 0.7877 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1935, allocations: 0 / 0.7877 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1935, allocations: 0 / 0.7877 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1935, allocations: 0 / 0.7877 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.1936, allocations: 189.5 kB / 0.7879 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1936, allocations: 0 / 0.7879 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.162e-05/0.1936, allocations: 7.984 kB / 0.7879 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.1937, allocations: 3.938 kB / 0.7879 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.1937, allocations: 12 kB / 0.7879 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1937, allocations: 0 / 0.7879 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1937, allocations: 0 / 0.7879 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.194, allocations: 222.5 kB / 0.7881 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.194, allocations: 88.95 kB / 0.7882 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.1941, allocations: 11.98 kB / 0.7882 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.672e-05/0.1941, allocations: 4 kB / 0.7882 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.1942, allocations: 12 kB / 0.7883 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.1942, allocations: 7.984 kB / 0.7883 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.572e-05/0.1942, allocations: 87.53 kB / 0.7884 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1942, allocations: 0 / 0.7884 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002076/0.1944, allocations: 24 kB / 0.7884 GB, free: 7.703 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005465/0.195, allocations: 0.7718 MB / 0.7891 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.1953, allocations: 175.2 kB / 0.7893 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1953, allocations: 0 / 0.7893 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.1954, allocations: 183.4 kB / 0.7895 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000182/0.1956, allocations: 11.31 kB / 0.7895 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1971, allocations: 1.624 MB / 0.7911 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.1973, allocations: 0.6926 MB / 0.7917 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.388e-05/0.1973, allocations: 4.953 kB / 0.7917 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/0.1974, allocations: 27.42 kB / 0.7918 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of SimCode: time 3.41e-07/0.1974, allocations: 0 / 0.7918 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.2077, allocations: 1.851 MB / 0.7936 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.208, allocations: 218 kB / 0.7938 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/1.806, allocations: 0 / 0.7938 GB, free: 2.012 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)