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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.502/1.502, allocations: 249.5 MB / 257 MB, free: 6.844 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.001131/0.001131, allocations: 183 kB / 316.3 MB, free: 3.238 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.574/1.574, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008982/0.0008981, allocations: 93.97 kB / 0.6714 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.473e-05/1.477e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2479, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8731/1.121, allocations: 134.2 MB / 1.016 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/1.121, allocations: 86.55 kB / 1.016 GB, free: 3.531 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 - DAE generated: time 0.0102/1.132, allocations: 3.228 MB / 1.02 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.246e-06/1.132, allocations: 3.984 kB / 1.02 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.132, allocations: 0 / 1.02 GB, free: 0.793 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.0007407/1.132, allocations: 489.5 kB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/1.133, allocations: 8.031 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.952e-05/1.133, allocations: 7.906 kB / 1.02 GB, free: 248 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/1.133, allocations: 175 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/1.133, allocations: 2.5 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/1.133, allocations: 7.984 kB / 1.02 GB, free: 24 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001226/1.133, allocations: 35.81 kB / 1.02 GB, free: 0 / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/1.133, allocations: 74.22 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/1.133, allocations: 4 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/1.133, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/1.133, allocations: 4 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/1.134, allocations: 304.5 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/1.134, allocations: 76.28 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.675e-05/1.134, allocations: 35.55 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/1.134, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/1.134, allocations: 89.42 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/1.134, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0003222/1.135, allocations: 126.5 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/1.135, allocations: 56.16 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/1.135, allocations: 125.7 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.887e-05/1.135, allocations: 25.7 kB / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/1.135, allocations: 96.61 kB / 1.021 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/1.135, allocations: 27.58 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/1.135, allocations: 0 / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.135, allocations: 322 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.527e-05/1.135, allocations: 26.62 kB / 1.022 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.766e-05/1.135, allocations: 67.14 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.79e-05/1.135, allocations: 25.91 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/1.135, allocations: 4 kB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001718/1.135, allocations: 111.2 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/1.136, allocations: 7.984 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.136, allocations: 4.094 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/1.136, allocations: 4 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/1.136, allocations: 15.98 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/1.136, allocations: 4 kB / 1.022 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/1.136, allocations: 11.91 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/1.136, allocations: 18.88 kB / 1.022 GB, free: 14.41 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 9.532e-05/1.136, allocations: 120.1 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/1.136, allocations: 7.906 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/1.136, allocations: 137.9 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/1.136, allocations: 4 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/1.136, allocations: 0 / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/1.136, allocations: 7.922 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/1.137, allocations: 404.6 kB / 1.022 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/1.137, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/1.137, allocations: 23.61 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/1.137, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/1.137, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/1.137, allocations: 4 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.137, allocations: 0.7812 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/1.137, allocations: 228.9 kB / 1.023 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.24e-05/1.137, allocations: 85.02 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/1.137, allocations: 7.984 kB / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/1.137, allocations: 4 kB / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/1.137, allocations: 15.97 kB / 1.023 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/1.138, allocations: 7.75 kB / 1.023 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.841e-05/1.138, allocations: 90.95 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.138, allocations: 0 / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003497/1.138, allocations: 63.45 kB / 1.023 GB, free: 13.25 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 (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.0003865/1.138, allocations: 177 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001794/1.139, allocations: 73.86 kB / 1.023 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/1.139, allocations: 0 / 1.023 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.835e-05/1.139, allocations: 47.05 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/1.139, allocations: 19.61 kB / 1.023 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003589/1.139, allocations: 130.7 kB / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/1.14, allocations: 0.704 MB / 1.024 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.113e-05/1.14, allocations: 12.42 kB / 1.024 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/1.14, allocations: 15.44 kB / 1.024 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/1.14, allocations: 0 / 1.024 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of Templates: time 0.004568/1.144, allocations: 1.912 MB / 1.026 GB, free: 10.19 MB / 0.6511 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) "" 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.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time