Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",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.005183/0.005183, allocations: 99.7 kB / 15.73 MB, free: 6.004 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.001337/0.001337, allocations: 192.8 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.706/2.706, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 72.06 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2612, allocations: 159.1 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001936/0.2631, allocations: 1.111 MB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2643, allocations: 1.1 MB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.609e-05/0.2644, allocations: 4 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.548e-05/0.2645, allocations: 19.69 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.982e-05/0.2646, allocations: 39.58 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.265, allocations: 159.7 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.2653, allocations: 327.1 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.2654, allocations: 52.31 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.2656, allocations: 131.6 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.2658, allocations: 159.3 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.2658, allocations: 28 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.542e-05/0.2659, allocations: 32 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.266, allocations: 75.78 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.2661, allocations: 131.4 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.2664, allocations: 310.8 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2664, allocations: 3.938 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2664, allocations: 4 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2664, allocations: 0 / 1.224 GB, free: 10.58 MB / 0.9825 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.001133/0.2676, allocations: 0.6312 MB / 1.224 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2676, allocations: 16.03 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.2677, allocations: 54.73 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.2677, allocations: 32.73 kB / 1.225 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.2679, allocations: 212.8 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.2681, allocations: 264.3 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.2682, allocations: 28.38 kB / 1.225 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.2686, allocations: 262.1 kB / 1.225 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2687, allocations: 8 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.2687, allocations: 4 kB / 1.225 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2687, allocations: 8 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004176/0.2691, allocations: 175.8 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2701, allocations: 0.7776 MB / 1.226 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004443/0.2706, allocations: 201.2 kB / 1.226 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002494/0.2709, allocations: 146.4 kB / 1.227 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.2709, allocations: 8 kB / 1.227 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005048/0.2714, allocations: 315.7 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 1.843e-06/0.2714, allocations: 0 / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.0009596/0.2724, allocations: 483.9 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.2725, allocations: 118.8 kB / 1.227 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.2726, allocations: 175.5 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.2727, allocations: 41.7 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.2728, allocations: 121.3 kB / 1.228 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.2729, allocations: 158.7 kB / 1.228 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.273, allocations: 102.3 kB / 1.228 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2732, allocations: 342.8 kB / 1.228 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.2735, allocations: 145.2 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.2738, allocations: 256.7 kB / 1.229 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.2745, allocations: 398 kB / 1.229 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2745, allocations: 0 / 1.229 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008138/0.2753, allocations: 489.1 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2753, allocations: 11.94 kB / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2753, allocations: 4 kB / 1.23 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2754, allocations: 4 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.2757, allocations: 107.8 kB / 1.23 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.2757, allocations: 4 kB / 1.23 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.276, allocations: 55.75 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.276, allocations: 20 kB / 1.23 GB, free: 4.066 MB / 0.9825 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 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.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.0001521/0.2762, allocations: 163.5 kB / 1.23 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.979e-05/0.2762, allocations: 35.75 kB / 1.23 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.343e-05/0.2763, allocations: 29.88 kB / 1.23 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2763, allocations: 4 kB / 1.23 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2763, allocations: 0 / 1.23 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.2763, allocations: 7.984 kB / 1.23 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.2767, allocations: 357.2 kB / 1.23 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2767, allocations: 0 / 1.23 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.2771, allocations: 71.91 kB / 1.23 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.2771, allocations: 7.922 kB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.2771, allocations: 24.06 kB / 1.23 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2771, allocations: 0 / 1.23 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2771, allocations: 0 / 1.23 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.2782, allocations: 0.5747 MB / 1.231 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.327e-05/0.2782, allocations: 116.8 kB / 1.231 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.2783, allocations: 12.17 kB / 1.231 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.2785, allocations: 27.97 kB / 1.231 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2786, allocations: 63.86 kB / 1.231 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.2787, allocations: 16 kB / 1.231 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.09e-05/0.2788, allocations: 125.2 kB / 1.231 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2788, allocations: 0 / 1.231 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002963/0.2791, allocations: 91.92 kB / 1.231 GB, free: 2.254 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.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.001343/0.2804, allocations: 1.144 MB / 1.233 GB, free: 1.082 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007019/0.2811, allocations: 391.9 kB / 1.233 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2811, allocations: 0 / 1.233 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.2815, allocations: 184.7 kB / 1.233 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.2818, allocations: 44.75 kB / 1.233 GB, free: 488 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/0.2857, allocations: 3.172 MB / 1.236 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.2861, allocations: 0.7647 MB / 1.237 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001366/0.2862, allocations: 39.23 kB / 1.237 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.2864, allocations: 91.41 kB / 1.237 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.2864, allocations: 0 / 1.237 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.255/4.542, allocations: 6.528 MB / 1.243 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/16.95, allocations: 6.703 kB / 1.243 GB, free: 5.816 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1)