Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.992/3.992, allocations: 433.2 MB / 440.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.214e-05/4.233e-05, allocations: 9.75 kB / 0.5325 GB, free: 12.77 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.208, allocations: 98.74 MB / 0.6289 GB, free: 9.094 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.234/0.4421, allocations: 124.5 MB / 0.7505 GB, free: 12.42 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.4424, allocations: 71.95 kB / 0.7506 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05253/0.495, allocations: 8.618 MB / 0.759 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.194e-06/0.495, allocations: 0 / 0.759 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.973e-05/0.4951, allocations: 4 kB / 0.759 GB, free: 3.711 MB / 0.6355 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.002287/0.4974, allocations: 0.6021 MB / 0.7596 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.4975, allocations: 12.03 kB / 0.7596 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.4976, allocations: 31.62 kB / 0.7596 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.4979, allocations: 195.6 kB / 0.7598 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003633/0.4983, allocations: 255.8 kB / 0.7601 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.4984, allocations: 23.86 kB / 0.7601 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000685/0.4991, allocations: 132.9 kB / 0.7602 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/0.4999, allocations: 229 kB / 0.7604 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.5, allocations: 0 / 0.7604 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.968e-05/0.5, allocations: 0 / 0.7604 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.5001, allocations: 8 kB / 0.7604 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.5026, allocations: 0.7471 MB / 0.7612 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007415/0.5033, allocations: 172.3 kB / 0.7613 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003833/0.5037, allocations: 106.9 kB / 0.7614 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-05/0.5038, allocations: 16.19 kB / 0.7614 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000863/0.5047, allocations: 275 kB / 0.7617 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=48): time 7.043e-06/0.5048, allocations: 0 / 0.7617 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of matching and sorting (n=48): time 0.001256/0.506, allocations: 313.2 kB / 0.762 GB, free: 368 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.5062, allocations: 118.8 kB / 0.7621 GB, free: 224 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.5064, allocations: 150.6 kB / 0.7623 GB, free: 64 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.612e-05/0.5065, allocations: 33.7 kB / 0.7623 GB, free: 24 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.5067, allocations: 113.2 kB / 0.7624 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.507, allocations: 149.9 kB / 0.7625 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.507, allocations: 0 / 0.7625 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002139/0.5072, allocations: 342.8 kB / 0.7629 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.5078, allocations: 117.6 kB / 0.763 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006407/0.5084, allocations: 216.5 kB / 0.7632 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.509, allocations: 135.8 kB / 0.7633 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.5091, allocations: 0 / 0.7633 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001536/0.5106, allocations: 405 kB / 0.7637 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.5107, allocations: 9.562 kB / 0.7637 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.5107, allocations: 4 kB / 0.7637 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.2e-05/0.5108, allocations: 4 kB / 0.7637 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.5118, allocations: 95.83 kB / 0.7638 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.368e-05/0.5119, allocations: 11.94 kB / 0.7638 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/0.5126, allocations: 55.66 kB / 0.7639 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.149e-05/0.5127, allocations: 23.98 kB / 0.7639 GB, free: 14.32 MB / 0.6511 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 ($whenCondition5,$PRE.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002551/0.5129, allocations: 127.1 kB / 0.764 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001202/0.5142, allocations: 303.3 kB / 0.7643 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.5143, allocations: 27.62 kB / 0.7643 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.5144, allocations: 33.95 kB / 0.7644 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.5145, allocations: 8 kB / 0.7644 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.5145, allocations: 0 / 0.7644 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5145, allocations: 0 / 0.7644 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.5152, allocations: 317.7 kB / 0.7647 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5153, allocations: 0 / 0.7647 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.5164, allocations: 75.89 kB / 0.7648 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.5164, allocations: 4 kB / 0.7648 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-05/0.5165, allocations: 8 kB / 0.7648 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.238e-06/0.5165, allocations: 4 kB / 0.7648 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.5165, allocations: 4 kB / 0.7648 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.518, allocations: 0.5232 MB / 0.7653 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.512e-05/0.5181, allocations: 100.8 kB / 0.7654 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.871e-05/0.5182, allocations: 64 / 0.7654 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.5187, allocations: 47.95 kB / 0.7654 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.5189, allocations: 39.91 kB / 0.7655 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-05/0.5189, allocations: 19.98 kB / 0.7655 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001343/0.5191, allocations: 116.3 kB / 0.7656 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.31e-07/0.5191, allocations: 0 / 0.7656 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005311/0.5196, allocations: 67.88 kB / 0.7657 GB, free: 12.42 MB / 0.6511 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 () * 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 (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.001855/0.5215, allocations: 1.225 MB / 0.7669 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009591/0.5225, allocations: 320.3 kB / 0.7672 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.5225, allocations: 0 / 0.7672 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004514/0.523, allocations: 159.8 kB / 0.7673 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.5234, allocations: 28.16 kB / 0.7673 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.5253, allocations: 0.5322 MB / 0.7679 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.5257, allocations: 0.7686 MB / 0.7686 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000319/0.526, allocations: 43.27 kB / 0.7687 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.5263, allocations: 87.34 kB / 0.7687 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of SimCode: time 1.132e-06/0.5263, allocations: 0 / 0.7687 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06033/0.5867, allocations: 5.074 MB / 0.7737 GB, free: 4.125 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/0.587, allocations: 146.4 kB / 0.7738 GB, free: 3.938 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/3.178, allocations: 0 / 0.7738 GB, free: 3.938 MB / 0.6511 GB