Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") [: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.535/2.535, allocations: 253.1 MB / 260.4 MB, free: 7.625 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.001919/0.001918, allocations: 181.2 kB / 319.6 MB, free: 3.34 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.829/1.829, allocations: 205.4 MB / 0.5704 GB, free: 15.08 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.001283/0.001282, allocations: 94.45 kB / 0.6746 GB, free: 4.449 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.517e-06/9.688e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2349, allocations: 106.2 MB / 0.888 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7994/1.034, allocations: 133.7 MB / 1.019 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000397/1.035, allocations: 78.77 kB / 1.019 GB, free: 4.703 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.01668/1.052, allocations: 2.646 MB / 1.021 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.805e-06/1.052, allocations: 3.938 kB / 1.021 GB, free: 2.5 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.0006705/1.052, allocations: 421.7 kB / 1.022 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.052, allocations: 8.031 kB / 1.022 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/1.052, allocations: 7.906 kB / 1.022 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/1.053, allocations: 170.5 kB / 1.022 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/1.053, allocations: 4 kB / 1.022 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/1.053, allocations: 4 kB / 1.022 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001132/1.053, allocations: 23.62 kB / 1.022 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/1.053, allocations: 57.03 kB / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/1.053, allocations: 4 kB / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/1.053, allocations: 0 / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/1.053, allocations: 3.906 kB / 1.022 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/1.054, allocations: 274 kB / 1.022 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/1.054, allocations: 45.48 kB / 1.022 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.322e-05/1.054, allocations: 28.3 kB / 1.022 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/1.054, allocations: 3.625 kB / 1.022 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/1.054, allocations: 61.7 kB / 1.022 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.054e-06/1.054, allocations: 0 / 1.022 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003131/1.054, allocations: 78.95 kB / 1.022 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/1.054, allocations: 51.48 kB / 1.022 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/1.055, allocations: 118.4 kB / 1.023 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/1.055, allocations: 29.7 kB / 1.023 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/1.055, allocations: 84.31 kB / 1.023 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/1.055, allocations: 23.11 kB / 1.023 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/1.055, allocations: 0 / 1.023 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001257/1.055, allocations: 314.2 kB / 1.023 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.816e-05/1.055, allocations: 22.75 kB / 1.023 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.76e-05/1.055, allocations: 43.62 kB / 1.023 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/1.055, allocations: 30.7 kB / 1.023 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.055, allocations: 0 / 1.023 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000251/1.055, allocations: 86.91 kB / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/1.056, allocations: 6.812 kB / 1.023 GB, free: 460 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/1.056, allocations: 4 kB / 1.023 GB, free: 456 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/1.056, allocations: 3.984 kB / 1.023 GB, free: 452 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/1.056, allocations: 15.23 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/1.056, allocations: 8 kB / 1.023 GB, free: 432 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/1.056, allocations: 7.984 kB / 1.023 GB, free: 424 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/1.056, allocations: 4 kB / 1.023 GB, free: 420 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.000101/1.056, allocations: 112.5 kB / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/1.056, allocations: 7.906 kB / 1.023 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.191e-05/1.056, allocations: 8.375 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.056, allocations: 4 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/1.056, allocations: 3.938 kB / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/1.056, allocations: 3.984 kB / 1.023 GB, free: 272 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004974/1.057, allocations: 322.9 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.057, allocations: 0 / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.025e-05/1.057, allocations: 4 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/1.057, allocations: 0 / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/1.057, allocations: 3.984 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.057, allocations: 3.938 kB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.057, allocations: 8 kB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002985/1.057, allocations: 173.3 kB / 1.024 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/1.057, allocations: 81.02 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/1.057, allocations: 4 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/1.057, allocations: 4 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/1.057, allocations: 7.359 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/1.057, allocations: 8 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.998e-05/1.058, allocations: 94.95 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004606/1.058, allocations: 47.62 kB / 1.024 GB, free: 15.49 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.0004827/1.059, allocations: 169.6 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002217/1.059, allocations: 57.59 kB / 1.024 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.059, allocations: 0 / 1.024 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 9.389e-05/1.059, allocations: 29.88 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/1.059, allocations: 7.984 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004297/1.06, allocations: 94.31 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/1.06, allocations: 0.7073 MB / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of SimCode: time 1.022e-06/1.06, allocations: 128 / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of Templates: time 0.006269/1.066, allocations: 1.638 MB / 1.027 GB, free: 12.8 MB / 0.6511 GB