Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.196/1.196, allocations: 249.4 MB / 256.7 MB, free: 7.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 188.5 kB / 316 MB, free: 3.539 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.043/1.043, allocations: 205.2 MB / 0.5667 GB, free: 15.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008123/0.0008123, allocations: 101.4 kB / 0.671 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.09e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1402, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.416/0.5562, allocations: 134.3 MB / 1.016 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.5565, allocations: 83.12 kB / 1.016 GB, free: 4.578 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.009183/0.5657, allocations: 2.995 MB / 1.019 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.5657, allocations: 4 kB / 1.019 GB, free: 2.086 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.0005084/0.5662, allocations: 497.3 kB / 1.019 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.5662, allocations: 12.97 kB / 1.019 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.5663, allocations: 7.906 kB / 1.019 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.5664, allocations: 182.8 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.5664, allocations: 4 kB / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.5665, allocations: 4 kB / 1.019 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001084/0.5666, allocations: 42.14 kB / 1.019 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.5667, allocations: 71.84 kB / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.5667, allocations: 0 / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.5667, allocations: 0 / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.5667, allocations: 0 / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004079/0.5671, allocations: 307 kB / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.5673, allocations: 71.05 kB / 1.02 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.348e-05/0.5674, allocations: 35.03 kB / 1.02 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.5674, allocations: 0 / 1.02 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/0.5675, allocations: 81.22 kB / 1.02 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.5675, allocations: 7.938 kB / 1.02 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002409/0.5677, allocations: 107.4 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.5678, allocations: 59.39 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.402e-05/0.5679, allocations: 126.5 kB / 1.02 GB, free: 452 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.5679, allocations: 25.7 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.383e-05/0.5679, allocations: 87.58 kB / 1.02 GB, free: 332 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.568, allocations: 35.12 kB / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.568, allocations: 0 / 1.02 GB, free: 300 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.167e-05/0.5681, allocations: 326.6 kB / 1.021 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.958e-05/0.5681, allocations: 19.06 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.508e-05/0.5682, allocations: 59.77 kB / 1.021 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.581e-05/0.5683, allocations: 29.98 kB / 1.021 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5683, allocations: 0 / 1.021 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001597/0.5684, allocations: 110.2 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/0.5685, allocations: 4 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.5685, allocations: 7.906 kB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.5685, allocations: 0 / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.5686, allocations: 27.67 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.5686, allocations: 0 / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.5687, allocations: 20.08 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.5687, allocations: 4 kB / 1.021 GB, free: 15.71 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 7.012e-05/0.5688, allocations: 114.9 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.866e-05/0.5688, allocations: 11.81 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002545/0.5691, allocations: 130.3 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.5691, allocations: 0 / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.5691, allocations: 4 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.5691, allocations: 3.984 kB / 1.021 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.5696, allocations: 411.8 kB / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5696, allocations: 0 / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.107e-05/0.5697, allocations: 22.67 kB / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5697, allocations: 0 / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.5697, allocations: 0 / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5697, allocations: 4 kB / 1.022 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5697, allocations: 3.938 kB / 1.022 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002189/0.57, allocations: 218.2 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.57, allocations: 85.16 kB / 1.022 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.5701, allocations: 7.969 kB / 1.022 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.5702, allocations: 12 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.5702, allocations: 19.38 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.5703, allocations: 4 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.931e-05/0.5703, allocations: 111.8 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002759/0.5706, allocations: 47.94 kB / 1.022 GB, free: 14.55 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.0002848/0.5709, allocations: 162.9 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001552/0.5711, allocations: 76.78 kB / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.5711, allocations: 0 / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.421e-05/0.5711, allocations: 49.94 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.5714, allocations: 19.11 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003505/0.5717, allocations: 147.6 kB / 1.023 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.572, allocations: 0.7226 MB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of SimCode: time 2.1e-07/0.572, allocations: 0 / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of Templates: time 0.004106/0.5761, allocations: 2.077 MB / 1.025 GB, free: 11.33 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:$whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,ill.amplitude,ill.freqHz,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time