Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") [: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.269/2.269, allocations: 253.1 MB / 260.4 MB, free: 7.57 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.001691/0.001691, 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 1.894/1.894, 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.001299/0.001299, allocations: 101.6 kB / 0.6746 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.037e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2042, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6405/0.8448, allocations: 133.7 MB / 1.019 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003832/0.8452, allocations: 85.86 kB / 1.019 GB, free: 4.621 MB / 0.6355 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.01426/0.8595, allocations: 2.642 MB / 1.021 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.8595, allocations: 0 / 1.021 GB, free: 2.422 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000704/0.8603, allocations: 416.1 kB / 1.022 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.8603, allocations: 8.031 kB / 1.022 GB, free: 1.965 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.176e-05/0.8604, allocations: 11.84 kB / 1.022 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.8606, allocations: 171 kB / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.8606, allocations: 4 kB / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.8606, allocations: 4 kB / 1.022 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001153/0.8608, allocations: 22.81 kB / 1.022 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.8609, allocations: 60.55 kB / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.861, allocations: 0 / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.861, allocations: 3.812 kB / 1.022 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.861, allocations: 3.906 kB / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.8617, allocations: 271.1 kB / 1.022 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.8618, allocations: 53.16 kB / 1.022 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.436e-05/0.8619, allocations: 23.8 kB / 1.022 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.862, allocations: 4 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001444/0.8621, allocations: 65.33 kB / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.873e-06/0.8621, allocations: 0 / 1.022 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003365/0.8625, allocations: 72.83 kB / 1.022 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.8626, allocations: 58.64 kB / 1.023 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.8627, allocations: 112.2 kB / 1.023 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.8627, allocations: 33.69 kB / 1.023 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.8628, allocations: 80.33 kB / 1.023 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.8628, allocations: 23.12 kB / 1.023 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.8629, allocations: 0 / 1.023 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.863, allocations: 319.1 kB / 1.023 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.8631, allocations: 17.75 kB / 1.023 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.253e-05/0.8632, allocations: 52.88 kB / 1.023 GB, free: 484 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.8633, allocations: 26.72 kB / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.8633, allocations: 0 / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002858/0.8636, allocations: 91.33 kB / 1.023 GB, free: 380 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.8637, allocations: 6.188 kB / 1.023 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.8637, allocations: 0 / 1.023 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.8637, allocations: 4 kB / 1.023 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.8639, allocations: 16.05 kB / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.8639, allocations: 4 kB / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.8641, allocations: 7.938 kB / 1.023 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.8641, allocations: 4 kB / 1.023 GB, free: 340 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001181/0.8642, allocations: 115.1 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.8643, allocations: 11.59 kB / 1.023 GB, free: 212 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.8643, allocations: 4.375 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.8643, allocations: 8 kB / 1.023 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.8644, allocations: 0 / 1.023 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.8644, allocations: 0 / 1.023 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006002/0.865, allocations: 319.1 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.865, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.469e-05/0.8651, allocations: 7.984 kB / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.8651, allocations: 0 / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.8652, allocations: 3.875 kB / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.8652, allocations: 7.938 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.706e-06/0.8652, allocations: 0 / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002793/0.8655, allocations: 174 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.834e-05/0.8656, allocations: 81.02 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.8656, allocations: 4 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.8658, allocations: 7.984 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.8658, allocations: 0 / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.8659, allocations: 11.98 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.786e-05/0.866, allocations: 93.75 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004716/0.8664, allocations: 47.86 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004955/0.8669, allocations: 175.7 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002323/0.8672, allocations: 56.72 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.8672, allocations: 0 / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 9.302e-05/0.8673, allocations: 30 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.8676, allocations: 5.688 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004436/0.8681, allocations: 97.67 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.8685, allocations: 0.7032 MB / 1.025 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of SimCode: time 9.52e-07/0.8685, allocations: 128 / 1.025 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of Templates: time 0.006304/0.8748, allocations: 1.639 MB / 1.027 GB, free: 12.72 MB / 0.6511 GB