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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.012/2.012, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001034/0.001034, allocations: 188.5 kB / 487.4 MB, free: 5.035 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.315/1.315, allocations: 221.5 MB / 0.7824 GB, free: 0.9062 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.0008312/0.0008313, allocations: 102.3 kB / 0.9219 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.31e-05/1.311e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7413/0.9639, allocations: 150.8 MB / 1.353 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.9642, allocations: 85.31 kB / 1.353 GB, free: 18.29 MB / 0.823 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 - DAE generated: time 0.009778/0.974, allocations: 3.271 MB / 1.356 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.123e-06/0.974, allocations: 0 / 1.356 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.974, allocations: 0 / 1.356 GB, free: 33.81 MB / 0.8386 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.0005333/0.9746, allocations: 489.1 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.9746, allocations: 11.66 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.9746, allocations: 7.844 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.9748, allocations: 181.2 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.9748, allocations: 7.75 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.9748, allocations: 7.688 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000107/0.9749, allocations: 41.25 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.9751, allocations: 71.59 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.9751, allocations: 0 / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.9751, allocations: 0 / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.9751, allocations: 3.844 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.9756, allocations: 297.7 kB / 1.358 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.9757, allocations: 80.41 kB / 1.358 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.605e-05/0.9758, allocations: 33.77 kB / 1.358 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.9758, allocations: 0 / 1.358 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.9759, allocations: 91.91 kB / 1.358 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.9759, allocations: 0 / 1.358 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002538/0.9762, allocations: 135.2 kB / 1.358 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/0.9762, allocations: 51.41 kB / 1.358 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.181e-05/0.9763, allocations: 125.1 kB / 1.358 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.9763, allocations: 25.7 kB / 1.358 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.9764, allocations: 94.92 kB / 1.358 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.9764, allocations: 21.34 kB / 1.358 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.9764, allocations: 0 / 1.358 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.9765, allocations: 321.8 kB / 1.358 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.705e-05/0.9766, allocations: 29.62 kB / 1.359 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.185e-05/0.9766, allocations: 60.22 kB / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.845e-05/0.9767, allocations: 25.19 kB / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9767, allocations: 0 / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001407/0.9768, allocations: 121.3 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.9769, allocations: 10.89 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.9769, allocations: 0 / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.9769, allocations: 3.969 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.977, allocations: 15.25 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.977, allocations: 3.844 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.844e-05/0.9771, allocations: 14.45 kB / 1.359 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.9771, allocations: 7.859 kB / 1.359 GB, free: 32 MB / 0.8386 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.124e-05/0.9772, allocations: 123.7 kB / 1.359 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.9772, allocations: 7.781 kB / 1.359 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.9775, allocations: 141 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.9775, allocations: 3.938 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.9775, allocations: 0 / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.9775, allocations: 3.906 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.9779, allocations: 415.6 kB / 1.359 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.9779, allocations: 0 / 1.359 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.978, allocations: 14.61 kB / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.978, allocations: 3.969 kB / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.978, allocations: 3.938 kB / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.978, allocations: 0 / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.9781, allocations: 0 / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.9783, allocations: 233.6 kB / 1.36 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.205e-05/0.9783, allocations: 81.02 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.9783, allocations: 6.469 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.9784, allocations: 10.69 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.9785, allocations: 10.56 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.9785, allocations: 6.375 kB / 1.36 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.9785, allocations: 96.66 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9786, allocations: 4 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002907/0.9789, allocations: 54.42 kB / 1.36 GB, free: 31.22 MB / 0.8386 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.0002998/0.9792, allocations: 178 kB / 1.36 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001347/0.9793, allocations: 70.92 kB / 1.36 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.9793, allocations: 4.062 kB / 1.36 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.225e-05/0.9794, allocations: 54.5 kB / 1.36 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.9796, allocations: 14.19 kB / 1.36 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002783/0.9799, allocations: 125 kB / 1.36 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.9801, allocations: 0.7009 MB / 1.361 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.665e-05/0.9802, allocations: 11.08 kB / 1.361 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.9802, allocations: 16.23 kB / 1.361 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.9802, allocations: 3.938 kB / 1.361 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of Templates: time 0.003762/0.984, allocations: 1.896 MB / 1.363 GB, free: 30.13 MB / 0.8386 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) "" 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.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time