Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.986/1.986, allocations: 387.2 MB / 394.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009854/0.0009857, allocations: 177.3 kB / 487 MB, free: 5.375 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.32/1.32, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 85.98 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.671e-06/5.791e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2055, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5833/0.7889, allocations: 150.7 MB / 1.352 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.7891, allocations: 82.56 kB / 1.352 GB, free: 15.87 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.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.009926/0.7991, allocations: 2.959 MB / 1.355 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.7991, allocations: 1.656 kB / 1.355 GB, free: 15.71 MB / 0.8073 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.0005632/0.7997, allocations: 0.4893 MB / 1.356 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.7997, allocations: 9.938 kB / 1.356 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.7998, allocations: 9.188 kB / 1.356 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.7999, allocations: 176 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.7999, allocations: 0.9688 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.7999, allocations: 4 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001282/0.8001, allocations: 45.17 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.8002, allocations: 74.22 kB / 1.356 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.547e-06/0.8002, allocations: 7.938 kB / 1.356 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.8003, allocations: 1.094 kB / 1.356 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.8003, allocations: 1.562 kB / 1.356 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.8007, allocations: 293.2 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.8009, allocations: 79.19 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.454e-05/0.801, allocations: 34.36 kB / 1.357 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.801, allocations: 6.328 kB / 1.357 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.8011, allocations: 84.47 kB / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.8011, allocations: 0.9375 kB / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0002854/0.8014, allocations: 103.8 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.8015, allocations: 57.77 kB / 1.357 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.387e-05/0.8016, allocations: 112.4 kB / 1.357 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.8016, allocations: 39.33 kB / 1.357 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.8e-05/0.8016, allocations: 88.12 kB / 1.357 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.8017, allocations: 25.11 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.8017, allocations: 0 / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.8017, allocations: 327.2 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.806e-05/0.8018, allocations: 20.33 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.425e-05/0.8019, allocations: 62.75 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.807e-05/0.8019, allocations: 28.16 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.8019, allocations: 0.8125 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001925/0.8021, allocations: 112.2 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.8022, allocations: 6 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.8022, allocations: 0.75 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.8022, allocations: 7.422 kB / 1.358 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.8023, allocations: 16.58 kB / 1.358 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.8023, allocations: 6.156 kB / 1.358 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.8025, allocations: 16.7 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.8025, allocations: 9.172 kB / 1.358 GB, free: 13.89 MB / 0.8073 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.166e-05/0.8026, allocations: 112.6 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.8026, allocations: 9.328 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.8029, allocations: 126 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.8029, allocations: 2.562 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.8029, allocations: 0 / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.8029, allocations: 1.469 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004998/0.8034, allocations: 391.9 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.8034, allocations: 0.9062 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.468e-05/0.8035, allocations: 19.56 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.8035, allocations: 1.531 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.8035, allocations: 2.125 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.8035, allocations: 2.359 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.8036, allocations: 0.8438 kB / 1.358 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002208/0.8038, allocations: 209.1 kB / 1.358 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.667e-05/0.8038, allocations: 88.89 kB / 1.359 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.8038, allocations: 2.172 kB / 1.359 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.804, allocations: 18.67 kB / 1.359 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.804, allocations: 16.34 kB / 1.359 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.8041, allocations: 5.594 kB / 1.359 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.153e-05/0.8041, allocations: 102.8 kB / 1.359 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003767/0.8045, allocations: 51.14 kB / 1.359 GB, free: 13.12 MB / 0.8073 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.0003462/0.8048, allocations: 170.6 kB / 1.359 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.805, allocations: 80.97 kB / 1.359 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.805, allocations: 0 / 1.359 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.013e-05/0.8051, allocations: 50.44 kB / 1.359 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.8054, allocations: 13.33 kB / 1.359 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004395/0.8058, allocations: 136.2 kB / 1.359 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.8061, allocations: 0.7228 MB / 1.36 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of SimCode: time 2.51e-07/0.8061, allocations: 0 / 1.36 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of Templates: time 0.0066/0.8127, allocations: 2.023 MB / 1.362 GB, free: 12.02 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches