Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.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_nonZeroStart,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_nonZeroStart",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.001142/0.001142, allocations: 108 kB / 15.61 MB, free: 152 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.001809/0.001809, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.422/1.422, allocations: 205.1 MB / 222.4 MB, free: 4.633 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.71/1.71, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001399/0.001399, allocations: 73.52 kB / 0.6716 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2351, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart): time 0.003204/0.2384, allocations: 1.955 MB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2395, allocations: 0.6875 MB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.392e-05/0.2396, allocations: 4 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.806e-05/0.2397, allocations: 23.67 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.2398, allocations: 39.58 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.2403, allocations: 155.7 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002966/0.2406, allocations: 323.1 kB / 0.7866 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.2407, allocations: 40.39 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.2409, allocations: 135.6 kB / 0.7868 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/0.2411, allocations: 151.4 kB / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.2412, allocations: 32 kB / 0.787 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.63e-05/0.2412, allocations: 28 kB / 0.787 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.2413, allocations: 75.8 kB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.2415, allocations: 135.4 kB / 0.7872 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.2418, allocations: 303.2 kB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2418, allocations: 0 / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2418, allocations: 0 / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.2418, allocations: 0 / 0.7875 GB, free: 9.27 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.001186/0.243, allocations: 0.6236 MB / 0.7881 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.243, allocations: 12.03 kB / 0.7881 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.506e-05/0.2431, allocations: 66.66 kB / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.086e-05/0.2432, allocations: 32.66 kB / 0.7882 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.2434, allocations: 192.8 kB / 0.7884 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.2436, allocations: 268.3 kB / 0.7886 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.481e-05/0.2437, allocations: 32.27 kB / 0.7887 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.2441, allocations: 261.6 kB / 0.7889 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.2442, allocations: 19.92 kB / 0.7889 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.2442, allocations: 4 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2442, allocations: 4 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.2446, allocations: 171.9 kB / 0.7891 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.2457, allocations: 0.7815 MB / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004742/0.2462, allocations: 207.7 kB / 0.7901 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.2464, allocations: 138.5 kB / 0.7902 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.2465, allocations: 4.375 kB / 0.7902 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005755/0.2471, allocations: 319.2 kB / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 1.763e-06/0.2471, allocations: 0 / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.00101/0.2481, allocations: 476.2 kB / 0.791 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.345e-05/0.2482, allocations: 122.8 kB / 0.7911 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.2484, allocations: 176.6 kB / 0.7912 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.2484, allocations: 37.7 kB / 0.7913 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.449e-05/0.2485, allocations: 117.2 kB / 0.7914 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.2486, allocations: 157.9 kB / 0.7915 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.2488, allocations: 98.34 kB / 0.7916 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2489, allocations: 346.8 kB / 0.792 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.2492, allocations: 149.2 kB / 0.7921 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.2496, allocations: 256.7 kB / 0.7923 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.2503, allocations: 394.1 kB / 0.7927 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2503, allocations: 3.938 kB / 0.7927 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008426/0.2511, allocations: 496.8 kB / 0.7932 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2512, allocations: 8 kB / 0.7932 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2512, allocations: 0 / 0.7932 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.2512, allocations: 11.94 kB / 0.7932 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.2516, allocations: 95.77 kB / 0.7933 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.2516, allocations: 8 kB / 0.7933 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002636/0.2519, allocations: 51.66 kB / 0.7934 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.2519, allocations: 27.98 kB / 0.7934 GB, free: 2.773 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.000176/0.2521, allocations: 160 kB / 0.7935 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.2522, allocations: 35.66 kB / 0.7936 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.484e-05/0.2522, allocations: 33.86 kB / 0.7936 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.2523, allocations: 4 kB / 0.7936 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.2523, allocations: 0 / 0.7936 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.2523, allocations: 4 kB / 0.7936 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.2527, allocations: 345.2 kB / 0.794 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.2527, allocations: 7.938 kB / 0.794 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004025/0.2531, allocations: 79.89 kB / 0.794 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2531, allocations: 0 / 0.794 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.2531, allocations: 16.05 kB / 0.794 GB, free: 2.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2532, allocations: 4 kB / 0.7941 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.2532, allocations: 0 / 0.7941 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2542, allocations: 0.5861 MB / 0.7946 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.905e-05/0.2543, allocations: 104.7 kB / 0.7947 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.2543, allocations: 12 kB / 0.7947 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.2546, allocations: 31.95 kB / 0.7948 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.2547, allocations: 55.94 kB / 0.7948 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.2547, allocations: 15.98 kB / 0.7948 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.49e-05/0.2548, allocations: 133.2 kB / 0.795 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.884e-06/0.2548, allocations: 96 / 0.795 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003145/0.2552, allocations: 83.84 kB / 0.795 GB, free: 0.9805 MB / 0.6075 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.001495/0.2567, allocations: 1.152 MB / 0.7962 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008528/0.2575, allocations: 406.7 kB / 0.7966 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2575, allocations: 0 / 0.7966 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004268/0.258, allocations: 207.9 kB / 0.7968 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.2583, allocations: 40.5 kB / 0.7968 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.2627, allocations: 3.165 MB / 0.7999 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.2631, allocations: 0.7725 MB / 0.8006 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001629/0.2633, allocations: 39.14 kB / 0.8007 GB, free: 11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.2634, allocations: 91.41 kB / 0.8008 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of SimCode: time 1.052e-06/0.2634, allocations: 0 / 0.8008 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.2908, allocations: 6.57 MB / 0.8072 GB, free: 4.488 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/8.024, allocations: 6.406 kB / 0.8072 GB, free: 4.484 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart_res.csv --start-time 100 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_nonZeroStart.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe 2>&1)