Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.451/1.451, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 192 kB / 366.3 MB, free: 1.938 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.1 MB / 0.6256 GB, free: 5.773 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008905/0.0008905, allocations: 91.53 kB / 0.7396 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.145e-06, allocations: 4 kB / 0.859 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5092/0.5092, allocations: 116.3 MB / 0.9726 GB, free: 68.21 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.6678, allocations: 140.5 MB / 1.11 GB, free: 7.93 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.6681, allocations: 83.94 kB / 1.11 GB, free: 7.848 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.009613/0.6778, allocations: 2.992 MB / 1.113 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.6778, allocations: 0 / 1.113 GB, free: 4.875 MB / 0.7136 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.0005783/0.6784, allocations: 499.5 kB / 1.113 GB, free: 4.324 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.6784, allocations: 12.03 kB / 1.113 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.6785, allocations: 16.81 kB / 1.113 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.6786, allocations: 179.4 kB / 1.113 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.6786, allocations: 4 kB / 1.113 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.6787, allocations: 5.031 kB / 1.113 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001149/0.6788, allocations: 39.92 kB / 1.113 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001202/0.6789, allocations: 69.64 kB / 1.114 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.6789, allocations: 0 / 1.114 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.6789, allocations: 4 kB / 1.114 GB, free: 3.957 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.679, allocations: 0 / 1.114 GB, free: 3.957 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004523/0.6794, allocations: 289.3 kB / 1.114 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.6796, allocations: 79.83 kB / 1.114 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.406e-05/0.6797, allocations: 32.86 kB / 1.114 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.6797, allocations: 0 / 1.114 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001345/0.6798, allocations: 95.2 kB / 1.114 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.6799, allocations: 0 / 1.114 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002759/0.6801, allocations: 105.6 kB / 1.114 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.6802, allocations: 60.61 kB / 1.114 GB, free: 3.23 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.6803, allocations: 132.5 kB / 1.114 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.6803, allocations: 25.7 kB / 1.114 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.93e-05/0.6804, allocations: 92.12 kB / 1.114 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/0.6804, allocations: 23.66 kB / 1.114 GB, free: 2.949 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.6804, allocations: 4 kB / 1.114 GB, free: 2.945 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.6805, allocations: 318.8 kB / 1.115 GB, free: 2.625 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.51e-05/0.6806, allocations: 23.98 kB / 1.115 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.6e-05/0.6807, allocations: 57.16 kB / 1.115 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.6807, allocations: 31.98 kB / 1.115 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.6807, allocations: 0 / 1.115 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001845/0.6809, allocations: 113.3 kB / 1.115 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.6809, allocations: 10.45 kB / 1.115 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.6809, allocations: 0 / 1.115 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.681, allocations: 9.062 kB / 1.115 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.6811, allocations: 23.92 kB / 1.115 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.6811, allocations: 4.094 kB / 1.115 GB, free: 2.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.6812, allocations: 19.89 kB / 1.115 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.6812, allocations: 8 kB / 1.115 GB, free: 2.309 MB / 0.7136 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 7.94e-05/0.6813, allocations: 104.2 kB / 1.115 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.965e-05/0.6813, allocations: 13.22 kB / 1.115 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.6816, allocations: 143.5 kB / 1.115 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.6816, allocations: 4 kB / 1.115 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.6817, allocations: 0 / 1.115 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.6817, allocations: 0 / 1.115 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005118/0.6822, allocations: 407.7 kB / 1.116 GB, free: 1.605 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.6822, allocations: 0 / 1.116 GB, free: 1.605 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.012e-05/0.6823, allocations: 15.94 kB / 1.116 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6823, allocations: 0 / 1.116 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.6823, allocations: 7.984 kB / 1.116 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.6823, allocations: 1 kB / 1.116 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.6823, allocations: 3.906 kB / 1.116 GB, free: 1.578 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002475/0.6826, allocations: 219 kB / 1.116 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.6827, allocations: 88.92 kB / 1.116 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.6827, allocations: 5.312 kB / 1.116 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.6828, allocations: 11.98 kB / 1.116 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.6829, allocations: 8.125 kB / 1.116 GB, free: 1.223 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.6829, allocations: 4.5 kB / 1.116 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.131e-05/0.683, allocations: 99.27 kB / 1.116 GB, free: 1.121 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003084/0.6833, allocations: 67.86 kB / 1.116 GB, free: 1.055 MB / 0.7136 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.0003399/0.6836, allocations: 163.9 kB / 1.116 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001781/0.6838, allocations: 75.92 kB / 1.116 GB, free: 0.8281 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6838, allocations: 4.125 kB / 1.116 GB, free: 0.8242 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.529e-05/0.6839, allocations: 51.94 kB / 1.116 GB, free: 0.7734 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.6842, allocations: 15.89 kB / 1.117 GB, free: 0.7578 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.6846, allocations: 143.2 kB / 1.117 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.6849, allocations: 0.7231 MB / 1.117 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/0.6849, allocations: 4 kB / 1.117 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of Templates: time 0.004497/0.6894, allocations: 2.074 MB / 1.119 GB, free: 13.8 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)