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.001006/0.001006, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001258/0.001258, allocations: 168.7 kB / 15.95 MB, free: 204 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.633/1.633, allocations: 205.4 MB / 222.1 MB, free: 5.398 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.678/1.678, allocations: 292.7 MB / 0.5499 GB, free: 14.56 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.000548/0.000548, allocations: 12.88 kB / 0.6738 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2432, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002179/0.2454, allocations: 1.107 MB / 0.7885 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008025/0.2463, allocations: 273.3 kB / 0.7888 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.541e-05/0.2464, allocations: 0 / 0.7888 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.2465, allocations: 3.938 kB / 0.7888 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.2468, allocations: 27.84 kB / 0.7888 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.247, allocations: 19.97 kB / 0.7888 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.2472, allocations: 55.78 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2473, allocations: 4 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.2474, allocations: 19.92 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.2475, allocations: 31.89 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.2476, allocations: 4 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.521e-05/0.2476, allocations: 3.938 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.2477, allocations: 19.92 kB / 0.7889 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.2477, allocations: 33.7 kB / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.2479, allocations: 40.14 kB / 0.789 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.2479, allocations: 0 / 0.789 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.875e-06/0.2479, allocations: 4 kB / 0.789 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.565e-06/0.2479, allocations: 0 / 0.789 GB, free: 10.18 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.0006764/0.2486, allocations: 384.9 kB / 0.7894 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.2487, allocations: 8.031 kB / 0.7894 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.2488, allocations: 42.55 kB / 0.7894 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.2488, allocations: 4 kB / 0.7894 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.2491, allocations: 186.8 kB / 0.7896 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2491, allocations: 4 kB / 0.7896 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.2491, allocations: 4 kB / 0.7896 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.2493, allocations: 69.67 kB / 0.7897 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2494, allocations: 0 / 0.7897 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.2494, allocations: 7.922 kB / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2494, allocations: 0 / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.2495, allocations: 47.98 kB / 0.7897 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004868/0.25, allocations: 300.7 kB / 0.79 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.2501, allocations: 74.55 kB / 0.7901 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.2503, allocations: 64.88 kB / 0.7902 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.2503, allocations: 0 / 0.7902 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.2506, allocations: 117.1 kB / 0.7903 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.2506, allocations: 0 / 0.7903 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004236/0.251, allocations: 211.3 kB / 0.7905 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.2511, allocations: 114.9 kB / 0.7906 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.866e-05/0.2512, allocations: 109.8 kB / 0.7907 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2513, allocations: 37.69 kB / 0.7907 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.2513, allocations: 84.14 kB / 0.7908 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.2513, allocations: 23.72 kB / 0.7908 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-06/0.2514, allocations: 4 kB / 0.7908 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2515, allocations: 330.8 kB / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.718e-05/0.2516, allocations: 35.97 kB / 0.7912 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.2517, allocations: 108.4 kB / 0.7913 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.2518, allocations: 85.67 kB / 0.7914 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2519, allocations: 0 / 0.7914 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004497/0.2523, allocations: 207 kB / 0.7916 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.2524, allocations: 33.7 kB / 0.7916 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2524, allocations: 0 / 0.7916 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.2524, allocations: 4 kB / 0.7916 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.2526, allocations: 31.94 kB / 0.7916 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.2526, allocations: 8.219 kB / 0.7916 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.2528, allocations: 19.83 kB / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.2528, allocations: 8 kB / 0.7917 GB, free: 7.156 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.000196/0.253, allocations: 168.9 kB / 0.7918 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.253, allocations: 11.91 kB / 0.7918 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.2531, allocations: 4.375 kB / 0.7918 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2531, allocations: 3.984 kB / 0.7918 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.2531, allocations: 7.953 kB / 0.7919 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.2531, allocations: 4 kB / 0.7919 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.2533, allocations: 185.6 kB / 0.792 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2533, allocations: 3.938 kB / 0.792 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.824e-05/0.2534, allocations: 4 kB / 0.792 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.2534, allocations: 0 / 0.792 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2534, allocations: 11.98 kB / 0.7921 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2534, allocations: 0 / 0.7921 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2535, allocations: 0 / 0.7921 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.2539, allocations: 234.6 kB / 0.7923 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-05/0.254, allocations: 84.95 kB / 0.7924 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.864e-05/0.254, allocations: 15.98 kB / 0.7924 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.2541, allocations: 4 kB / 0.7924 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.2542, allocations: 4 kB / 0.7924 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.2542, allocations: 3.984 kB / 0.7924 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.142e-05/0.2543, allocations: 91.28 kB / 0.7925 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2543, allocations: 0 / 0.7925 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003838/0.2547, allocations: 27.95 kB / 0.7925 GB, free: 6.195 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.0009793/0.2557, allocations: 0.788 MB / 0.7933 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004596/0.2562, allocations: 175.2 kB / 0.7934 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.2562, allocations: 0 / 0.7934 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.2565, allocations: 187.4 kB / 0.7936 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.2568, allocations: 20.48 kB / 0.7936 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.2583, allocations: 0.6617 MB / 0.7943 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.2587, allocations: 0.6926 MB / 0.795 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.669e-05/0.2588, allocations: 4.672 kB / 0.795 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.2588, allocations: 23.42 kB / 0.795 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of SimCode: time 5.91e-07/0.2588, allocations: 0 / 0.795 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.2758, allocations: 1.818 MB / 0.7968 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.2761, allocations: 199.1 kB / 0.7969 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/1.993, allocations: 0 / 0.7969 GB, free: 1.586 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/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: