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.001663/0.001663, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 188.3 kB / 16.62 MB, free: 6.582 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.308/1.308, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.648/1.648, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001587/0.001587, allocations: 68.27 kB / 0.6718 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2079, allocations: 114.6 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002646/0.2106, allocations: 1.388 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006071/0.2113, allocations: 283.9 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.319e-05/0.2113, allocations: 0 / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.2115, allocations: 7.922 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.2116, allocations: 11.92 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.2118, allocations: 39.84 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.212, allocations: 59.84 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2121, allocations: 15.98 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.688e-05/0.2122, allocations: 23.92 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.2123, allocations: 35.84 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.2124, allocations: 4 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.2124, allocations: 4 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.905e-05/0.2125, allocations: 11.92 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.2125, allocations: 27.86 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.2127, allocations: 67.95 kB / 0.7856 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2127, allocations: 7.984 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2127, allocations: 0 / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.2127, allocations: 0 / 0.7856 GB, free: 11.23 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.0005363/0.2132, allocations: 393 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2133, allocations: 8.031 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.2133, allocations: 34.75 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.514e-05/0.2134, allocations: 12.78 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.2135, allocations: 176.4 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2136, allocations: 384 / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.2136, allocations: 12.38 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.2138, allocations: 66.22 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.2138, allocations: 11.88 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.2138, allocations: 4 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2138, allocations: 0 / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.2139, allocations: 35.97 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.2144, allocations: 284.7 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.2145, allocations: 82.53 kB / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.524e-05/0.2146, allocations: 56.84 kB / 0.7867 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.2146, allocations: 4.031 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.2148, allocations: 114.1 kB / 0.7868 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 7.814e-06/0.2148, allocations: 0 / 0.7868 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003812/0.2152, allocations: 199.2 kB / 0.787 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.2153, allocations: 118.8 kB / 0.7871 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.2154, allocations: 105.8 kB / 0.7872 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2154, allocations: 33.7 kB / 0.7873 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.088e-05/0.2155, allocations: 92.06 kB / 0.7873 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.2155, allocations: 27.7 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.2156, allocations: 37.7 kB / 0.7874 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.2156, allocations: 318.8 kB / 0.7877 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.649e-05/0.2157, allocations: 39.98 kB / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.2159, allocations: 100.5 kB / 0.7878 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.2161, allocations: 215.8 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2161, allocations: 0 / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002999/0.2164, allocations: 203 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.2164, allocations: 33.7 kB / 0.7883 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2165, allocations: 4 kB / 0.7883 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2165, allocations: 8.219 kB / 0.7883 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.2166, allocations: 23.98 kB / 0.7883 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2166, allocations: 7.938 kB / 0.7883 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.2167, allocations: 19.78 kB / 0.7883 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.2167, allocations: 8 kB / 0.7883 GB, free: 8.047 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.0001408/0.2169, allocations: 172.2 kB / 0.7885 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.2169, allocations: 11.91 kB / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.673e-05/0.2169, allocations: 8.375 kB / 0.7885 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2169, allocations: 11.94 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.2169, allocations: 0 / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2169, allocations: 0 / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.2171, allocations: 189.5 kB / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2171, allocations: 0 / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.434e-05/0.2171, allocations: 0 / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2171, allocations: 4 kB / 0.7887 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.2172, allocations: 4 kB / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2172, allocations: 320 / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2172, allocations: 7.984 kB / 0.7887 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.2175, allocations: 226.5 kB / 0.789 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-05/0.2176, allocations: 85.05 kB / 0.789 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.2176, allocations: 8 kB / 0.789 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.964e-05/0.2177, allocations: 7.984 kB / 0.789 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.2177, allocations: 4 kB / 0.7891 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.2177, allocations: 0 / 0.7891 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.641e-05/0.2178, allocations: 95.25 kB / 0.7891 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.21e-07/0.2178, allocations: 7.938 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002271/0.218, allocations: 27.91 kB / 0.7892 GB, free: 7.086 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.0005691/0.2186, allocations: 0.7648 MB / 0.7899 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002737/0.2189, allocations: 175.2 kB / 0.7901 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2189, allocations: 0 / 0.7901 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.2191, allocations: 187.3 kB / 0.7903 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.2193, allocations: 13.72 kB / 0.7903 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.2208, allocations: 1.614 MB / 0.7919 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.221, allocations: 0.6924 MB / 0.7925 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.082e-05/0.2211, allocations: 8.656 kB / 0.7925 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.2211, allocations: 23.38 kB / 0.7926 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2211, allocations: 3.938 kB / 0.7926 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.237, allocations: 2.035 MB / 0.7946 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.849/7.086, allocations: 12.77 kB / 0.7946 GB, free: 1.461 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)