Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Gunay2016Light,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.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,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.Gunay2016Light") [: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.166/1.166, allocations: 249.4 MB / 256.7 MB, free: 15.8 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009536/0.0009536, allocations: 177.7 kB / 316 MB, free: 7.211 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.222/1.222, allocations: 205.1 MB / 0.5667 GB, free: 23.62 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.0007664/0.0007664, allocations: 87.59 kB / 0.671 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 4.939e-06/4.959e-06, allocations: 0 / 0.7807 GB, free: 480 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3509, allocations: 106.3 MB / 0.8846 GB, free: 76.24 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4812, allocations: 133.2 MB / 1.015 GB, free: 6.867 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4815, allocations: 83.94 kB / 1.015 GB, free: 6.785 MB / 0.6667 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.008771/0.4903, allocations: 2.92 MB / 1.018 GB, free: 3.863 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.4903, allocations: 0 / 1.018 GB, free: 3.863 MB / 0.6667 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.0005272/0.4908, allocations: 491.2 kB / 1.018 GB, free: 3.32 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.4908, allocations: 8.031 kB / 1.018 GB, free: 3.312 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.4909, allocations: 7.906 kB / 1.018 GB, free: 3.305 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.491, allocations: 182.1 kB / 1.018 GB, free: 3.09 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.491, allocations: 0 / 1.018 GB, free: 3.09 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.4911, allocations: 11.92 kB / 1.018 GB, free: 3.078 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001077/0.4912, allocations: 39.98 kB / 1.018 GB, free: 3.039 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.4913, allocations: 73.66 kB / 1.018 GB, free: 2.961 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.4913, allocations: 0 / 1.018 GB, free: 2.961 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.4913, allocations: 0 / 1.018 GB, free: 2.961 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.4913, allocations: 8 kB / 1.018 GB, free: 2.953 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004212/0.4918, allocations: 289.2 kB / 1.019 GB, free: 2.633 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001755/0.492, allocations: 70.69 kB / 1.019 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.856e-05/0.492, allocations: 36.84 kB / 1.019 GB, free: 2.516 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4921, allocations: 4 kB / 1.019 GB, free: 2.512 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001115/0.4922, allocations: 91.22 kB / 1.019 GB, free: 2.41 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.4922, allocations: 0 / 1.019 GB, free: 2.41 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.0002544/0.4924, allocations: 109.5 kB / 1.019 GB, free: 2.297 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.4925, allocations: 55.41 kB / 1.019 GB, free: 2.23 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.723e-05/0.4926, allocations: 117.3 kB / 1.019 GB, free: 2.105 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.4926, allocations: 29.7 kB / 1.019 GB, free: 2.07 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.4926, allocations: 88.03 kB / 1.019 GB, free: 1.98 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.4927, allocations: 27.8 kB / 1.019 GB, free: 1.953 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.4927, allocations: 0 / 1.019 GB, free: 1.953 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.4928, allocations: 322.8 kB / 1.02 GB, free: 1.629 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.274e-05/0.4928, allocations: 20 kB / 1.02 GB, free: 1.609 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.435e-05/0.4929, allocations: 65.14 kB / 1.02 GB, free: 1.527 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.571e-05/0.493, allocations: 31.92 kB / 1.02 GB, free: 1.496 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.493, allocations: 0 / 1.02 GB, free: 1.496 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001776/0.4932, allocations: 117.4 kB / 1.02 GB, free: 1.375 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/0.4932, allocations: 4.094 kB / 1.02 GB, free: 1.371 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4932, allocations: 8 kB / 1.02 GB, free: 1.363 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.4932, allocations: 0 / 1.02 GB, free: 1.363 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.4933, allocations: 23.92 kB / 1.02 GB, free: 1.34 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.4933, allocations: 7.984 kB / 1.02 GB, free: 1.332 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.4934, allocations: 11.98 kB / 1.02 GB, free: 1.32 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.4935, allocations: 8 kB / 1.02 GB, free: 1.312 MB / 0.6667 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.924e-05/0.4936, allocations: 116 kB / 1.02 GB, free: 1.195 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.4936, allocations: 15.84 kB / 1.02 GB, free: 1.18 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002408/0.4938, allocations: 123 kB / 1.02 GB, free: 1.059 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.4938, allocations: 4 kB / 1.02 GB, free: 1.055 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.4938, allocations: 0 / 1.02 GB, free: 1.055 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.4938, allocations: 0 / 1.02 GB, free: 1.055 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.4943, allocations: 396.5 kB / 1.02 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4943, allocations: 0 / 1.02 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.864e-05/0.4944, allocations: 15.98 kB / 1.02 GB, free: 0.6094 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4944, allocations: 0 / 1.02 GB, free: 0.6094 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4944, allocations: 4 kB / 1.02 GB, free: 0.6055 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4944, allocations: 4 kB / 1.02 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4945, allocations: 3.984 kB / 1.02 GB, free: 0.5977 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002145/0.4947, allocations: 207.3 kB / 1.021 GB, free: 388 kB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.4947, allocations: 84.95 kB / 1.021 GB, free: 284 kB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.4948, allocations: 7.984 kB / 1.021 GB, free: 276 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.4949, allocations: 12 kB / 1.021 GB, free: 264 kB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.4949, allocations: 15.97 kB / 1.021 GB, free: 248 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.495, allocations: 4 kB / 1.021 GB, free: 244 kB / 0.6667 GB Notification: Performance of sort global known variables: time 4.634e-05/0.495, allocations: 102.8 kB / 1.021 GB, free: 144 kB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002714/0.4953, allocations: 47.94 kB / 1.021 GB, free: 96 kB / 0.6667 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 (13): * Single equations (assignments): 10 * 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.0003107/0.4956, allocations: 178.4 kB / 1.021 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001516/0.4958, allocations: 74.05 kB / 1.021 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.4958, allocations: 0 / 1.021 GB, free: 15.85 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.359e-05/0.4959, allocations: 51.92 kB / 1.021 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.4961, allocations: 11.84 kB / 1.021 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003281/0.4964, allocations: 135.5 kB / 1.021 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.4967, allocations: 0.7269 MB / 1.022 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of SimCode: time 3.81e-07/0.4967, allocations: 0 / 1.022 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of Templates: time 0.004052/0.5008, allocations: 2.019 MB / 1.024 GB, free: 12.86 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches