Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.886/1.886, allocations: 390.4 MB / 397.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 192.4 kB / 490.8 MB, free: 11.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 221.4 MB / 0.7863 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008922/0.0008922, allocations: 91.22 kB / 0.9264 GB, free: 4.578 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 6.041e-06/6.061e-06, allocations: 0 / 1.072 GB, free: 15.62 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7206/0.7206, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1774/0.8981, allocations: 151.5 MB / 1.36 GB, free: 40.12 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.8984, allocations: 76.73 kB / 1.36 GB, free: 40.04 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.008616/0.907, allocations: 3.049 MB / 1.363 GB, free: 37.04 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.907, allocations: 1 kB / 1.363 GB, free: 37.04 MB / 0.8855 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.000513/0.9076, allocations: 0.4908 MB / 1.363 GB, free: 36.48 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.9076, allocations: 8.531 kB / 1.363 GB, free: 36.48 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.503e-05/0.9077, allocations: 16.31 kB / 1.363 GB, free: 36.46 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.9078, allocations: 178.7 kB / 1.363 GB, free: 36.25 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.9078, allocations: 7.938 kB / 1.363 GB, free: 36.24 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.9079, allocations: 4 kB / 1.363 GB, free: 36.24 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001161/0.908, allocations: 40.58 kB / 1.363 GB, free: 36.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.9081, allocations: 62.19 kB / 1.363 GB, free: 36.13 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.9081, allocations: 3.031 kB / 1.363 GB, free: 36.13 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.9081, allocations: 4.812 kB / 1.363 GB, free: 36.13 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.9082, allocations: 2 kB / 1.363 GB, free: 36.13 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/0.9086, allocations: 298.9 kB / 1.364 GB, free: 35.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.9087, allocations: 72.41 kB / 1.364 GB, free: 35.72 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.378e-05/0.9088, allocations: 33 kB / 1.364 GB, free: 35.69 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.9088, allocations: 4.766 kB / 1.364 GB, free: 35.68 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/0.9089, allocations: 89.09 kB / 1.364 GB, free: 35.59 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.502e-06/0.9089, allocations: 0 / 1.364 GB, free: 35.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0002624/0.9092, allocations: 109.5 kB / 1.364 GB, free: 35.47 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.9092, allocations: 56.48 kB / 1.364 GB, free: 35.41 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.234e-05/0.9093, allocations: 132.7 kB / 1.364 GB, free: 35.27 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.9093, allocations: 26.27 kB / 1.364 GB, free: 35.24 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.597e-05/0.9094, allocations: 88.73 kB / 1.364 GB, free: 35.14 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.9094, allocations: 31.64 kB / 1.364 GB, free: 35.11 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-06/0.9094, allocations: 0.8125 kB / 1.364 GB, free: 35.11 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.9095, allocations: 318.8 kB / 1.365 GB, free: 34.79 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.916e-05/0.9095, allocations: 20.62 kB / 1.365 GB, free: 34.77 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.503e-05/0.9096, allocations: 58.98 kB / 1.365 GB, free: 34.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.694e-05/0.9096, allocations: 37.28 kB / 1.365 GB, free: 34.66 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.9096, allocations: 0 / 1.365 GB, free: 34.66 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001576/0.9098, allocations: 115.3 kB / 1.365 GB, free: 34.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.9098, allocations: 4 kB / 1.365 GB, free: 34.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.9098, allocations: 0 / 1.365 GB, free: 34.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.9098, allocations: 4.938 kB / 1.365 GB, free: 34.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.91, allocations: 19.92 kB / 1.365 GB, free: 34.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.91, allocations: 5 kB / 1.365 GB, free: 34.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.9101, allocations: 20.61 kB / 1.365 GB, free: 34.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.9101, allocations: 8.562 kB / 1.365 GB, free: 34.49 MB / 0.8855 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 6.105e-05/0.9102, allocations: 118.2 kB / 1.365 GB, free: 34.37 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/0.9102, allocations: 11.91 kB / 1.365 GB, free: 34.36 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.9105, allocations: 127.6 kB / 1.365 GB, free: 34.23 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.9105, allocations: 7.906 kB / 1.365 GB, free: 34.23 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.9105, allocations: 0 / 1.365 GB, free: 34.23 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.9105, allocations: 3.984 kB / 1.365 GB, free: 34.22 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004208/0.9109, allocations: 404.1 kB / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.9109, allocations: 4 kB / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.911, allocations: 21.08 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.911, allocations: 0 / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.9111, allocations: 0.9062 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.9111, allocations: 0 / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.9111, allocations: 3.828 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001903/0.9113, allocations: 220.9 kB / 1.366 GB, free: 33.54 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.695e-05/0.9113, allocations: 84.92 kB / 1.366 GB, free: 33.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.9113, allocations: 8.484 kB / 1.366 GB, free: 33.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.9115, allocations: 9.719 kB / 1.366 GB, free: 33.42 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.9115, allocations: 16.81 kB / 1.366 GB, free: 33.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.9116, allocations: 5.75 kB / 1.366 GB, free: 33.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.062e-05/0.9116, allocations: 103.4 kB / 1.366 GB, free: 33.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002976/0.9119, allocations: 52 kB / 1.366 GB, free: 33.25 MB / 0.8855 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.0003267/0.9122, allocations: 174.8 kB / 1.366 GB, free: 33.09 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000156/0.9124, allocations: 76.77 kB / 1.366 GB, free: 33.02 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9124, allocations: 0.8125 kB / 1.366 GB, free: 33.02 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.297e-05/0.9125, allocations: 47.92 kB / 1.366 GB, free: 32.97 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.9127, allocations: 21.33 kB / 1.366 GB, free: 32.95 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.9131, allocations: 143.7 kB / 1.366 GB, free: 32.79 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.9133, allocations: 0.7243 MB / 1.367 GB, free: 32.04 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.9133, allocations: 4.438 kB / 1.367 GB, free: 32.04 MB / 0.8855 GB Notification: Performance of Templates: time 0.004234/0.9175, allocations: 2.066 MB / 1.369 GB, free: 30.06 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_latest_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.f,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