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.00146/0.00146, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001803/0.001804, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.772/1.772, allocations: 292.6 MB / 0.5497 GB, free: 14.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.0009309/0.000931, allocations: 22.38 kB / 0.6737 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2255, allocations: 116.3 MB / 0.7873 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001512/0.2271, allocations: 1.107 MB / 0.7883 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005413/0.2276, allocations: 269.4 kB / 0.7886 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.2277, allocations: 0 / 0.7886 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.446e-05/0.2278, allocations: 7.938 kB / 0.7886 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.2279, allocations: 7.984 kB / 0.7886 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.2281, allocations: 27.86 kB / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.741e-05/0.2282, allocations: 39.94 kB / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.664e-05/0.2283, allocations: 8 kB / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.174e-05/0.2284, allocations: 27.91 kB / 0.7887 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.2285, allocations: 23.91 kB / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.2285, allocations: 4 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.2285, allocations: 0 / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.779e-05/0.2286, allocations: 7.938 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.2287, allocations: 37.7 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.2288, allocations: 52.05 kB / 0.7888 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2288, allocations: 4 kB / 0.7888 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2288, allocations: 0 / 0.7888 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.2288, allocations: 0 / 0.7888 GB, free: 10.22 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.0005529/0.2294, allocations: 384.9 kB / 0.7892 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2295, allocations: 8.031 kB / 0.7892 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.356e-05/0.2295, allocations: 42.55 kB / 0.7892 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.2295, allocations: 4 kB / 0.7892 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.2297, allocations: 186.9 kB / 0.7894 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.2298, allocations: 8 kB / 0.7894 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.2298, allocations: 4 kB / 0.7894 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.23, allocations: 69.67 kB / 0.7895 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.23, allocations: 0 / 0.7895 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.23, allocations: 0 / 0.7895 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.23, allocations: 0 / 0.7895 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.2301, allocations: 43.97 kB / 0.7895 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/0.2307, allocations: 304.6 kB / 0.7898 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.2308, allocations: 70.56 kB / 0.7899 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.2308, allocations: 0 / 0.7899 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.2311, allocations: 129 kB / 0.79 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 2.845e-06/0.2311, allocations: 3.984 kB / 0.79 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004704/0.2315, allocations: 292.4 kB / 0.7903 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.2316, allocations: 110.8 kB / 0.7904 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.2317, allocations: 109.8 kB / 0.7905 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2318, allocations: 33.69 kB / 0.7905 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.305e-05/0.2318, allocations: 88.14 kB / 0.7906 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.2319, allocations: 35.75 kB / 0.7907 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.2319, allocations: 0 / 0.7907 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.232, allocations: 322.8 kB / 0.791 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.518e-05/0.2321, allocations: 39.97 kB / 0.791 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.2323, allocations: 104.5 kB / 0.7911 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.2324, allocations: 89.67 kB / 0.7912 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2325, allocations: 0 / 0.7912 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003345/0.2328, allocations: 203 kB / 0.7914 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.573e-05/0.2329, allocations: 37.98 kB / 0.7914 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.2329, allocations: 0 / 0.7914 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.2329, allocations: 4 kB / 0.7914 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.233, allocations: 23.98 kB / 0.7915 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.2331, allocations: 7.891 kB / 0.7915 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.52e-05/0.2332, allocations: 23.83 kB / 0.7915 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.2332, allocations: 8 kB / 0.7915 GB, free: 7.16 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.2334, allocations: 164.2 kB / 0.7916 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.143e-05/0.2334, allocations: 11.91 kB / 0.7917 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.2334, allocations: 12.36 kB / 0.7917 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2334, allocations: 0 / 0.7917 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2334, allocations: 0 / 0.7917 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2334, allocations: 3.953 kB / 0.7917 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.2336, allocations: 185.6 kB / 0.7919 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2336, allocations: 7.875 kB / 0.7919 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.2336, allocations: 7.984 kB / 0.7919 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2337, allocations: 0 / 0.7919 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2337, allocations: 12 kB / 0.7919 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2337, allocations: 0 / 0.7919 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2337, allocations: 0 / 0.7919 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003422/0.234, allocations: 230.6 kB / 0.7921 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/0.2341, allocations: 84.95 kB / 0.7922 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.2341, allocations: 11.98 kB / 0.7922 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.065e-05/0.2342, allocations: 8 kB / 0.7922 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.2342, allocations: 3.984 kB / 0.7922 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.2343, allocations: 12 kB / 0.7922 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.706e-05/0.2343, allocations: 91.22 kB / 0.7923 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2343, allocations: 0 / 0.7923 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002256/0.2346, allocations: 20 kB / 0.7923 GB, free: 6.203 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 (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.0006326/0.2352, allocations: 0.7921 MB / 0.7931 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002844/0.2355, allocations: 180.2 kB / 0.7933 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2355, allocations: 4.062 kB / 0.7933 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.2357, allocations: 179.5 kB / 0.7934 GB, free: 5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.2359, allocations: 18.42 kB / 0.7935 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.2372, allocations: 1.802 MB / 0.7952 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2375, allocations: 0.6926 MB / 0.7959 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.2376, allocations: 4.672 kB / 0.7959 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.2376, allocations: 23.42 kB / 0.7959 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.2376, allocations: 3.938 kB / 0.7959 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01205/0.2497, allocations: 1.796 MB / 0.7977 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.2499, allocations: 191.9 kB / 0.7979 GB, free: 468 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/1.935, allocations: 3 kB / 0.7979 GB, free: 468 kB / 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/linux/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) Environment - environmentSimulation: