Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") [: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.243/2.243, allocations: 253.1 MB / 260.4 MB, free: 11.82 MB / 211.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001522/0.001522, allocations: 186.9 kB / 319.6 MB, free: 2.305 MB / 243.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.4 MB / 0.5704 GB, free: 8.34 MB / 435.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 102.3 kB / 0.6746 GB, free: 21.85 MB / 467.1 MB Notification: Performance of FrontEnd - loaded program: time 1.205e-05/1.219e-05, allocations: 4 kB / 0.7843 GB, free: 5.461 MB / 0.5499 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6335/0.6336, allocations: 106.2 MB / 0.888 GB, free: 64.5 MB / 0.5968 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2323/0.8659, allocations: 132.7 MB / 1.018 GB, free: 7.582 MB / 0.6593 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.8663, allocations: 76.86 kB / 1.018 GB, free: 7.508 MB / 0.6593 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.01368/0.88, allocations: 2.652 MB / 1.02 GB, free: 4.859 MB / 0.6593 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.8801, allocations: 4 kB / 1.02 GB, free: 4.855 MB / 0.6593 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.0006407/0.8807, allocations: 418.4 kB / 1.021 GB, free: 4.398 MB / 0.6593 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.8808, allocations: 8.031 kB / 1.021 GB, free: 4.391 MB / 0.6593 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.994e-05/0.8808, allocations: 7.906 kB / 1.021 GB, free: 4.383 MB / 0.6593 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.881, allocations: 167 kB / 1.021 GB, free: 4.18 MB / 0.6593 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.881, allocations: 0 / 1.021 GB, free: 4.18 MB / 0.6593 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.8811, allocations: 11.94 kB / 1.021 GB, free: 4.168 MB / 0.6593 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001179/0.8812, allocations: 23.98 kB / 1.021 GB, free: 4.145 MB / 0.6593 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.8814, allocations: 57.66 kB / 1.021 GB, free: 4.082 MB / 0.6593 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.8814, allocations: 4 kB / 1.021 GB, free: 4.078 MB / 0.6593 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.8814, allocations: 0 / 1.021 GB, free: 4.078 MB / 0.6593 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.8814, allocations: 3.906 kB / 1.021 GB, free: 4.074 MB / 0.6593 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005798/0.882, allocations: 273.4 kB / 1.021 GB, free: 3.77 MB / 0.6593 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001111/0.8822, allocations: 42.42 kB / 1.021 GB, free: 3.719 MB / 0.6593 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.725e-05/0.8823, allocations: 28.97 kB / 1.021 GB, free: 3.688 MB / 0.6593 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.8823, allocations: 0 / 1.021 GB, free: 3.688 MB / 0.6593 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.8825, allocations: 67.39 kB / 1.021 GB, free: 3.609 MB / 0.6593 GB Notification: Performance of pre-optimization done (n=7): time 1.774e-06/0.8825, allocations: 0 / 1.021 GB, free: 3.609 MB / 0.6593 GB Notification: Performance of matching and sorting (n=7): time 0.000303/0.8828, allocations: 81.59 kB / 1.021 GB, free: 3.523 MB / 0.6593 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.8829, allocations: 63.41 kB / 1.022 GB, free: 3.449 MB / 0.6593 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.883, allocations: 118.5 kB / 1.022 GB, free: 3.328 MB / 0.6593 GB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.8831, allocations: 25.7 kB / 1.022 GB, free: 3.297 MB / 0.6593 GB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.8831, allocations: 88.31 kB / 1.022 GB, free: 3.203 MB / 0.6593 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.8832, allocations: 15.75 kB / 1.022 GB, free: 3.188 MB / 0.6593 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.25e-05/0.8832, allocations: 0 / 1.022 GB, free: 3.188 MB / 0.6593 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.8833, allocations: 322.8 kB / 1.022 GB, free: 2.863 MB / 0.6593 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.549e-05/0.8834, allocations: 19.98 kB / 1.022 GB, free: 2.844 MB / 0.6593 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/0.8835, allocations: 34.58 kB / 1.022 GB, free: 2.801 MB / 0.6593 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.8836, allocations: 27.89 kB / 1.022 GB, free: 2.773 MB / 0.6593 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.8836, allocations: 0 / 1.022 GB, free: 2.773 MB / 0.6593 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002673/0.8839, allocations: 93.52 kB / 1.022 GB, free: 2.676 MB / 0.6593 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.884, allocations: 5.719 kB / 1.022 GB, free: 2.672 MB / 0.6593 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.884, allocations: 4.062 kB / 1.022 GB, free: 2.668 MB / 0.6593 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.884, allocations: 0 / 1.022 GB, free: 2.668 MB / 0.6593 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.8842, allocations: 16 kB / 1.022 GB, free: 2.652 MB / 0.6593 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.8842, allocations: 3.984 kB / 1.022 GB, free: 2.648 MB / 0.6593 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.8843, allocations: 4 kB / 1.022 GB, free: 2.645 MB / 0.6593 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.8843, allocations: 4 kB / 1.022 GB, free: 2.641 MB / 0.6593 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.0001093/0.8844, allocations: 116.8 kB / 1.022 GB, free: 2.52 MB / 0.6593 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/0.8845, allocations: 7.906 kB / 1.022 GB, free: 2.512 MB / 0.6593 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.851e-05/0.8845, allocations: 12.36 kB / 1.022 GB, free: 2.5 MB / 0.6593 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.8845, allocations: 0 / 1.022 GB, free: 2.5 MB / 0.6593 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.8846, allocations: 0 / 1.022 GB, free: 2.5 MB / 0.6593 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.8846, allocations: 4 kB / 1.022 GB, free: 2.496 MB / 0.6593 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.885, allocations: 315 kB / 1.023 GB, free: 2.145 MB / 0.6593 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8851, allocations: 0 / 1.023 GB, free: 2.145 MB / 0.6593 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.915e-05/0.8851, allocations: 7.938 kB / 1.023 GB, free: 2.137 MB / 0.6593 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.8852, allocations: 4 kB / 1.023 GB, free: 2.133 MB / 0.6593 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.8852, allocations: 7.984 kB / 1.023 GB, free: 2.125 MB / 0.6593 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.8852, allocations: 0 / 1.023 GB, free: 2.125 MB / 0.6593 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.8852, allocations: 0 / 1.023 GB, free: 2.125 MB / 0.6593 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002745/0.8855, allocations: 179.6 kB / 1.023 GB, free: 1.934 MB / 0.6593 GB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.8855, allocations: 85.02 kB / 1.023 GB, free: 1.832 MB / 0.6593 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.8856, allocations: 0 / 1.023 GB, free: 1.832 MB / 0.6593 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.8857, allocations: 8 kB / 1.023 GB, free: 1.824 MB / 0.6593 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.8858, allocations: 7.984 kB / 1.023 GB, free: 1.816 MB / 0.6593 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.8858, allocations: 0 / 1.023 GB, free: 1.816 MB / 0.6593 GB Notification: Performance of sort global known variables: time 6.785e-05/0.8859, allocations: 100.9 kB / 1.023 GB, free: 1.719 MB / 0.6593 GB Notification: Performance of remove unused functions: time 0.0004617/0.8864, allocations: 43.94 kB / 1.023 GB, free: 1.676 MB / 0.6593 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.0004674/0.8869, allocations: 181.3 kB / 1.023 GB, free: 1.504 MB / 0.6593 GB Notification: Performance of simCode: created initialization part: time 0.0002062/0.8871, allocations: 51.98 kB / 1.023 GB, free: 1.453 MB / 0.6593 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8871, allocations: 0 / 1.023 GB, free: 1.453 MB / 0.6593 GB Notification: Performance of simCode: created simulation system equations: time 9.253e-05/0.8872, allocations: 27.94 kB / 1.023 GB, free: 1.426 MB / 0.6593 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.8875, allocations: 11.92 kB / 1.023 GB, free: 1.414 MB / 0.6593 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005074/0.888, allocations: 91.81 kB / 1.023 GB, free: 1.301 MB / 0.6593 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.8885, allocations: 0.7076 MB / 1.024 GB, free: 0.5664 MB / 0.6593 GB Notification: Performance of SimCode: time 9.12e-07/0.8885, allocations: 0 / 1.024 GB, free: 0.5664 MB / 0.6593 GB Notification: Performance of Templates: time 0.00773/0.8962, allocations: 1.636 MB / 1.026 GB, free: 14.95 MB / 0.6749 GB