Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.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.Controls.OBC.CDL.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_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.000906/0.0009061, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.005447/0.005447, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.284/1.284, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.637/1.637, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004892/0.0004893, allocations: 20.44 kB / 0.6744 GB, free: 25.75 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2029, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean): time 0.001991/0.2049, allocations: 1.672 MB / 0.7896 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009705/0.2059, allocations: 0.6711 MB / 0.7903 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.65e-05/0.206, allocations: 0 / 0.7903 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.206, allocations: 15.8 kB / 0.7903 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.2061, allocations: 31.7 kB / 0.7903 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.2065, allocations: 135.8 kB / 0.7905 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003093/0.2069, allocations: 315 kB / 0.7908 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.207, allocations: 36.38 kB / 0.7908 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.2072, allocations: 107.7 kB / 0.7909 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.2074, allocations: 139.4 kB / 0.791 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.2074, allocations: 16 kB / 0.7911 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 3.387e-05/0.2075, allocations: 16 kB / 0.7911 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.97e-05/0.2076, allocations: 63.78 kB / 0.7911 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.2077, allocations: 141.1 kB / 0.7913 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.208, allocations: 287.2 kB / 0.7915 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.208, allocations: 0 / 0.7915 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.208, allocations: 0 / 0.7915 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.208, allocations: 0 / 0.7915 GB, free: 7.816 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001146/0.2092, allocations: 0.6042 MB / 0.7921 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2092, allocations: 8.031 kB / 0.7921 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.864e-05/0.2093, allocations: 62.72 kB / 0.7922 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.151e-05/0.2094, allocations: 36.66 kB / 0.7922 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.2095, allocations: 204.7 kB / 0.7924 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.2098, allocations: 268.3 kB / 0.7927 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.2098, allocations: 28.28 kB / 0.7927 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.2103, allocations: 273.6 kB / 0.793 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.2103, allocations: 4 kB / 0.793 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.2104, allocations: 4 kB / 0.793 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2104, allocations: 8 kB / 0.793 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/0.2108, allocations: 191.8 kB / 0.7932 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009821/0.2118, allocations: 0.7854 MB / 0.7939 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004465/0.2123, allocations: 211.7 kB / 0.7941 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.2126, allocations: 138.5 kB / 0.7943 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.2126, allocations: 16.34 kB / 0.7943 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005603/0.2132, allocations: 311.3 kB / 0.7946 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 1.583e-06/0.2132, allocations: 0 / 0.7946 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.001038/0.2142, allocations: 0.4966 MB / 0.7951 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.2143, allocations: 114.8 kB / 0.7952 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.2145, allocations: 176.6 kB / 0.7954 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.2145, allocations: 45.7 kB / 0.7954 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.2146, allocations: 117.2 kB / 0.7955 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.2147, allocations: 153.9 kB / 0.7957 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.671e-05/0.2148, allocations: 57.69 kB / 0.7957 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2149, allocations: 346.7 kB / 0.796 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.2152, allocations: 149.2 kB / 0.7962 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.2156, allocations: 260.7 kB / 0.7964 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006547/0.2163, allocations: 410.1 kB / 0.7968 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.2163, allocations: 0 / 0.7968 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008414/0.2171, allocations: 0.5011 MB / 0.7973 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.2172, allocations: 8 kB / 0.7973 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2172, allocations: 8 kB / 0.7973 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2172, allocations: 4 kB / 0.7973 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.2176, allocations: 99.81 kB / 0.7974 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.2176, allocations: 11.94 kB / 0.7974 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002887/0.2179, allocations: 67.66 kB / 0.7975 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.2179, allocations: 20 kB / 0.7975 GB, free: 1.27 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movingMean_1.mode,$PRE.movingMean_1.mode,$whenCondition5,movingMean_2.mode,$PRE.movingMean_2.mode,$whenCondition6,movingMean_3.mode,$PRE.movingMean_3.mode,$whenCondition7,movingMean_4.mode,$PRE.movingMean_4.mode,$whenCondition8,movingMean_5.mode,$PRE.movingMean_5.mode,$whenCondition9,movingMean_6.mode,$PRE.movingMean_6.mode,$whenCondition3,movingMean_7.mode,$PRE.movingMean_7.mode,$whenCondition4,movingMean_8.mode,$PRE.movingMean_8.mode,$whenCondition1,movingMean_9.mode,$PRE.movingMean_9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.000161/0.2181, allocations: 160 kB / 0.7977 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.2181, allocations: 31.73 kB / 0.7977 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.744e-05/0.2182, allocations: 29.88 kB / 0.7977 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.2182, allocations: 8 kB / 0.7977 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2182, allocations: 0 / 0.7977 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2183, allocations: 3.984 kB / 0.7977 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.2186, allocations: 357.2 kB / 0.7981 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2186, allocations: 3.938 kB / 0.7981 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.219, allocations: 79.95 kB / 0.7982 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.219, allocations: 4 kB / 0.7982 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.2191, allocations: 12 kB / 0.7982 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.2191, allocations: 0 / 0.7982 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2191, allocations: 4 kB / 0.7982 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2201, allocations: 0.6057 MB / 0.7988 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.2202, allocations: 112.6 kB / 0.7989 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.2202, allocations: 8 kB / 0.7989 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.2205, allocations: 47.97 kB / 0.7989 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.2206, allocations: 55.92 kB / 0.799 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.2207, allocations: 11.98 kB / 0.799 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 8.831e-05/0.2207, allocations: 129.2 kB / 0.7991 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2208, allocations: 0 / 0.7991 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003208/0.2211, allocations: 76 kB / 0.7992 GB, free: 15.45 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001384/0.2225, allocations: 1.17 MB / 0.8003 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007428/0.2232, allocations: 395.1 kB / 0.8007 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2232, allocations: 0 / 0.8007 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003856/0.2236, allocations: 209.5 kB / 0.8009 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.224, allocations: 43.91 kB / 0.801 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.2282, allocations: 3.298 MB / 0.8042 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.2286, allocations: 0.7686 MB / 0.8049 GB, free: 9.355 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001774/0.2288, allocations: 39.14 kB / 0.805 GB, free: 9.32 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.229, allocations: 95.33 kB / 0.8051 GB, free: 9.227 MB / 0.6231 GB Notification: Performance of SimCode: time 1.332e-06/0.229, allocations: 0 / 0.8051 GB, free: 9.227 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01549/0.2445, allocations: 5.785 MB / 0.8107 GB, free: 3.605 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.2447, allocations: 221.9 kB / 0.8109 GB, free: 3.336 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.084, allocations: 3.938 kB / 0.8109 GB, free: 3.332 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1)