Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") [: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.137/2.137, allocations: 253.1 MB / 260.4 MB, free: 7.559 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.001734/0.001733, allocations: 188.9 kB / 319.6 MB, free: 3.324 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.919/1.919, 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.001354/0.001354, allocations: 99.25 kB / 0.6746 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.828e-06/9.999e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2171, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.663/0.8802, allocations: 133.7 MB / 1.019 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003989/0.8807, allocations: 81.48 kB / 1.019 GB, free: 4.586 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.01822/0.8989, allocations: 2.648 MB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.899, allocations: 0 / 1.021 GB, free: 2.383 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.0008356/0.8998, allocations: 419.4 kB / 1.022 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.8999, allocations: 8.031 kB / 1.022 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.9, allocations: 11.84 kB / 1.022 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.9002, allocations: 170.9 kB / 1.022 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.9002, allocations: 4 kB / 1.022 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.9002, allocations: 4 kB / 1.022 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001476/0.9004, allocations: 26.23 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.9006, allocations: 62.33 kB / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.9006, allocations: 0 / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.9007, allocations: 0 / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.9007, allocations: 7.906 kB / 1.022 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006911/0.9014, allocations: 280.4 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.9016, allocations: 38.05 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.9017, allocations: 31.78 kB / 1.022 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.9017, allocations: 0 / 1.022 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/0.9019, allocations: 70.08 kB / 1.022 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.234e-06/0.9019, allocations: 0 / 1.022 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003893/0.9023, allocations: 79.22 kB / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.9024, allocations: 55.41 kB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.9026, allocations: 111.3 kB / 1.023 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.9026, allocations: 29.7 kB / 1.023 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.336e-05/0.9027, allocations: 91.62 kB / 1.023 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.9027, allocations: 15.25 kB / 1.023 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.9028, allocations: 3.938 kB / 1.023 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.9029, allocations: 322.4 kB / 1.023 GB, free: 488 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.397e-05/0.903, allocations: 11.62 kB / 1.023 GB, free: 480 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.9032, allocations: 46.59 kB / 1.023 GB, free: 436 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.9033, allocations: 26.39 kB / 1.023 GB, free: 416 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9034, allocations: 0 / 1.023 GB, free: 416 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000362/0.9037, allocations: 94.08 kB / 1.023 GB, free: 328 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.9038, allocations: 4 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.9038, allocations: 0 / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.9038, allocations: 0 / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.904, allocations: 15.98 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.9041, allocations: 8 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.9042, allocations: 4 kB / 1.023 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.9043, allocations: 4 kB / 1.023 GB, free: 292 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 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.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.0001338/0.9044, allocations: 112.7 kB / 1.023 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.9045, allocations: 7.906 kB / 1.023 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.126e-05/0.9045, allocations: 8.359 kB / 1.023 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.9046, allocations: 0 / 1.023 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.9046, allocations: 4 kB / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.9046, allocations: 4 kB / 1.023 GB, free: 148 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007534/0.9054, allocations: 320.7 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.9054, allocations: 0 / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.746e-05/0.9055, allocations: 4 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.9055, allocations: 7.984 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.9056, allocations: 0 / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.9056, allocations: 0 / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.9056, allocations: 3.984 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003806/0.906, allocations: 180.8 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.9061, allocations: 81.02 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.9061, allocations: 0 / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.9064, allocations: 7.984 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/0.9064, allocations: 4 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.9065, allocations: 4 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.776e-05/0.9066, allocations: 106 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007128/0.9073, allocations: 47.88 kB / 1.024 GB, free: 15.36 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 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.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.000575/0.9079, allocations: 173.5 kB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002799/0.9082, allocations: 57.09 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.9082, allocations: 4.125 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.9084, allocations: 29.67 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.9087, allocations: 0 / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.9093, allocations: 97.92 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.9098, allocations: 0.7065 MB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of SimCode: time 1.113e-06/0.9099, allocations: 0 / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of Templates: time 0.007801/0.9177, allocations: 1.634 MB / 1.027 GB, free: 12.68 MB / 0.6511 GB