Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") [: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.313/2.313, allocations: 253.1 MB / 260.4 MB, free: 7.547 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.001601/0.001601, allocations: 185.2 kB / 319.6 MB, free: 3.316 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.864/1.864, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.001325/0.001325, allocations: 97.7 kB / 0.6746 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.059e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2076, allocations: 106.2 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7029/0.9106, allocations: 134.1 MB / 1.019 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.911, allocations: 84.19 kB / 1.019 GB, free: 3.949 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.01567/0.9267, allocations: 2.99 MB / 1.022 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.9267, allocations: 4 kB / 1.022 GB, free: 1.457 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009088/0.9276, allocations: 497.5 kB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.9277, allocations: 12.03 kB / 1.022 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.9278, allocations: 15.84 kB / 1.022 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.928, allocations: 181.5 kB / 1.023 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.928, allocations: 0 / 1.023 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.9281, allocations: 7.984 kB / 1.023 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00017/0.9283, allocations: 37.67 kB / 1.023 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.9285, allocations: 76.06 kB / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.9285, allocations: 0 / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.9285, allocations: 0 / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.9285, allocations: 3.984 kB / 1.023 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.9292, allocations: 303.3 kB / 1.023 GB, free: 264 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.9294, allocations: 64.81 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.928e-05/0.9295, allocations: 34.78 kB / 1.023 GB, free: 180 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.9296, allocations: 3.469 kB / 1.023 GB, free: 180 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.9298, allocations: 92.19 kB / 1.023 GB, free: 88 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.595e-06/0.9298, allocations: 0 / 1.023 GB, free: 88 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0004217/0.9302, allocations: 102.3 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.9303, allocations: 58.59 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.9304, allocations: 130.1 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.9305, allocations: 25.7 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.9305, allocations: 89.11 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/0.9306, allocations: 30.92 kB / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.008e-05/0.9306, allocations: 0 / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001954/0.9308, allocations: 328.5 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.002e-05/0.9309, allocations: 19.56 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.931, allocations: 62.52 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.742e-05/0.9312, allocations: 30.17 kB / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.9312, allocations: 0 / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000319/0.9315, allocations: 111.1 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.9315, allocations: 4 kB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.9316, allocations: 4 kB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.9316, allocations: 7.844 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.9318, allocations: 19.98 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.9318, allocations: 0 / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.932, allocations: 23.27 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.9321, allocations: 4 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001117/0.9322, allocations: 109.9 kB / 1.024 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.9322, allocations: 15.8 kB / 1.024 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004418/0.9327, allocations: 131.5 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.9327, allocations: 4 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.9327, allocations: 3.938 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.9327, allocations: 0 / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008332/0.9336, allocations: 414.4 kB / 1.025 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.9336, allocations: 4 kB / 1.025 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.9338, allocations: 15.98 kB / 1.025 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.9338, allocations: 3.984 kB / 1.025 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.9338, allocations: 4 kB / 1.025 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.9338, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9338, allocations: 3.938 kB / 1.025 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003836/0.9342, allocations: 215.2 kB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-05/0.9343, allocations: 89.02 kB / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.9344, allocations: 4 kB / 1.025 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.9346, allocations: 11.98 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.9347, allocations: 14.95 kB / 1.025 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.9347, allocations: 7.984 kB / 1.025 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.024e-05/0.9348, allocations: 104 kB / 1.025 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005032/0.9353, allocations: 50.56 kB / 1.025 GB, free: 13.91 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: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0004921/0.9358, allocations: 173.4 kB / 1.026 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002749/0.9361, allocations: 73.67 kB / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.9361, allocations: 0 / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.9363, allocations: 49.42 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.9366, allocations: 15.73 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005866/0.9372, allocations: 152.6 kB / 1.026 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/0.9377, allocations: 0.7192 MB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of SimCode: time 8.42e-07/0.9377, allocations: 3.938 kB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of Templates: time 0.007522/0.9452, allocations: 2.076 MB / 1.029 GB, free: 10.68 MB / 0.6511 GB