Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.696/2.696, allocations: 253.1 MB / 260.4 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001723/0.001722, allocations: 185.2 kB / 319.6 MB, free: 3.309 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.194/2.194, allocations: 205.4 MB / 0.5704 GB, free: 15.05 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002122/0.002122, allocations: 91.27 kB / 0.6746 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.352e-05/1.37e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2418, allocations: 106.3 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8217/1.064, allocations: 132.5 MB / 1.017 GB, free: 5.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/1.064, allocations: 70.02 kB / 1.018 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.05043/1.114, allocations: 8.38 MB / 1.026 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.063e-05/1.115, allocations: 4 kB / 1.026 GB, free: 15.02 MB / 0.6511 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.002771/1.117, allocations: 0.6212 MB / 1.026 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.476e-05/1.117, allocations: 8.031 kB / 1.026 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002314/1.118, allocations: 27.72 kB / 1.026 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/1.118, allocations: 195.5 kB / 1.027 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004719/1.119, allocations: 254.3 kB / 1.027 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/1.119, allocations: 19.5 kB / 1.027 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000805/1.12, allocations: 136.4 kB / 1.027 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007673/1.12, allocations: 221.6 kB / 1.027 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/1.121, allocations: 7.906 kB / 1.027 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/1.121, allocations: 4 kB / 1.027 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/1.121, allocations: 4 kB / 1.027 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/1.123, allocations: 0.7297 MB / 1.028 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009224/1.124, allocations: 184.1 kB / 1.028 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/1.125, allocations: 105.2 kB / 1.028 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-05/1.125, allocations: 7.312 kB / 1.028 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00089/1.126, allocations: 248.3 kB / 1.028 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 5.129e-06/1.126, allocations: 0 / 1.028 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.001301/1.127, allocations: 283.4 kB / 1.029 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/1.127, allocations: 118.5 kB / 1.029 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/1.128, allocations: 151.5 kB / 1.029 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/1.128, allocations: 25.7 kB / 1.029 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/1.128, allocations: 107.6 kB / 1.029 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000251/1.128, allocations: 146.9 kB / 1.029 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/1.128, allocations: 11.5 kB / 1.029 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002195/1.129, allocations: 335.2 kB / 1.03 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/1.129, allocations: 114.6 kB / 1.03 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006881/1.13, allocations: 221.5 kB / 1.03 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/1.13, allocations: 128.4 kB / 1.03 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/1.13, allocations: 4 kB / 1.03 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001609/1.132, allocations: 399.2 kB / 1.03 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/1.132, allocations: 6.5 kB / 1.03 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/1.132, allocations: 4 kB / 1.03 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.063e-05/1.132, allocations: 7.906 kB / 1.03 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/1.133, allocations: 107.1 kB / 1.03 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.721e-05/1.133, allocations: 7.938 kB / 1.03 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008324/1.134, allocations: 59.66 kB / 1.031 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-05/1.134, allocations: 25.23 kB / 1.031 GB, free: 10.41 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.0002789/1.135, allocations: 127.3 kB / 1.031 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/1.135, allocations: 31.62 kB / 1.031 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/1.135, allocations: 29 kB / 1.031 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/1.135, allocations: 4 kB / 1.031 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/1.135, allocations: 0 / 1.031 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/1.135, allocations: 7.984 kB / 1.031 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000754/1.136, allocations: 306.9 kB / 1.031 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/1.136, allocations: 0 / 1.031 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/1.137, allocations: 83.58 kB / 1.031 GB, free: 9.863 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.495e-05/1.137, allocations: 0 / 1.031 GB, free: 9.863 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.412e-05/1.137, allocations: 15.55 kB / 1.031 GB, free: 9.852 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-06/1.137, allocations: 0 / 1.031 GB, free: 9.852 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/1.137, allocations: 4 kB / 1.031 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00198/1.139, allocations: 0.5094 MB / 1.032 GB, free: 9.438 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/1.14, allocations: 104.8 kB / 1.032 GB, free: 9.316 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/1.14, allocations: 3.984 kB / 1.032 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000747/1.14, allocations: 39.97 kB / 1.032 GB, free: 9.273 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/1.141, allocations: 43.19 kB / 1.032 GB, free: 9.238 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/1.141, allocations: 11.44 kB / 1.032 GB, free: 9.23 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000208/1.141, allocations: 122.6 kB / 1.032 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000956/1.142, allocations: 71.98 kB / 1.032 GB, free: 9.055 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.0003722/1.142, allocations: 114.8 kB / 1.032 GB, free: 8.938 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001581/1.144, allocations: 317 kB / 1.032 GB, free: 8.711 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.144, allocations: 0 / 1.032 GB, free: 8.711 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008927/1.145, allocations: 158.6 kB / 1.033 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008675/1.146, allocations: 33.55 kB / 1.033 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/1.149, allocations: 490.3 kB / 1.033 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/1.15, allocations: 0.8183 MB / 1.034 GB, free: 7.273 MB / 0.6511 GB Notification: Performance of SimCode: time 1.984e-06/1.15, allocations: 0 / 1.034 GB, free: 7.273 MB / 0.6511 GB Notification: Performance of Templates: time 0.01949/1.17, allocations: 3.829 MB / 1.038 GB, free: 3.484 MB / 0.6511 GB