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.507/1.507, allocations: 251.9 MB / 266.9 MB, free: 11 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.001005/0.001005, allocations: 185 kB / 326.5 MB, free: 2.23 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.582/1.582, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0008076/0.0008075, allocations: 89.67 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003498, allocations: 12 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2439, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1801/0.4241, allocations: 134 MB / 1.031 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.4244, allocations: 79.95 kB / 1.031 GB, free: 9.629 MB / 0.6823 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.01032/0.4347, allocations: 3.257 MB / 1.034 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4348, allocations: 0 / 1.034 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.948e-06/0.4348, allocations: 0 / 1.034 GB, free: 6.363 MB / 0.6823 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.0007649/0.4356, allocations: 0.4999 MB / 1.035 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.4356, allocations: 12.03 kB / 1.035 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.584e-05/0.4357, allocations: 7.906 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.4359, allocations: 175 kB / 1.035 GB, free: 5.566 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.4359, allocations: 4 kB / 1.035 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.381e-05/0.4359, allocations: 7.984 kB / 1.035 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.4362, allocations: 85.58 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4362, allocations: 0 / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.4362, allocations: 4 kB / 1.035 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4362, allocations: 0 / 1.035 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.4364, allocations: 55.95 kB / 1.035 GB, free: 5.406 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006328/0.437, allocations: 332.6 kB / 1.035 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.4373, allocations: 86.7 kB / 1.035 GB, free: 4.938 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.4373, allocations: 7.984 kB / 1.035 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.4375, allocations: 99.5 kB / 1.036 GB, free: 4.82 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.4375, allocations: 0 / 1.036 GB, free: 4.82 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004513/0.438, allocations: 189.4 kB / 1.036 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.438, allocations: 55.36 kB / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.4382, allocations: 130.6 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.4382, allocations: 25.7 kB / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.351e-05/0.4383, allocations: 96.08 kB / 1.036 GB, free: 4.297 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.4383, allocations: 23.7 kB / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-06/0.4383, allocations: 8 kB / 1.036 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.4385, allocations: 324.7 kB / 1.036 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.926e-05/0.4385, allocations: 27.98 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.4387, allocations: 71.75 kB / 1.036 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.999e-05/0.4388, allocations: 43.92 kB / 1.036 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4388, allocations: 0 / 1.036 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002805/0.4391, allocations: 137.4 kB / 1.037 GB, free: 3.645 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4391, allocations: 8 kB / 1.037 GB, free: 3.637 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4391, allocations: 4.094 kB / 1.037 GB, free: 3.633 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4391, allocations: 4 kB / 1.037 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.4392, allocations: 19.98 kB / 1.037 GB, free: 3.609 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.4393, allocations: 0 / 1.037 GB, free: 3.609 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.4394, allocations: 23.84 kB / 1.037 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.4394, allocations: 4 kB / 1.037 GB, free: 3.582 MB / 0.6823 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 () * Number of clocked 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 0.0001164/0.4395, allocations: 126.6 kB / 1.037 GB, free: 3.449 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.4395, allocations: 15.89 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.4399, allocations: 162.3 kB / 1.037 GB, free: 3.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4399, allocations: 3.938 kB / 1.037 GB, free: 3.266 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4399, allocations: 3.938 kB / 1.037 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4399, allocations: 0 / 1.037 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006186/0.4406, allocations: 454.4 kB / 1.037 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.4406, allocations: 144 / 1.037 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.533e-05/0.4407, allocations: 15.94 kB / 1.037 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.4407, allocations: 3.984 kB / 1.037 GB, free: 2.742 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.4407, allocations: 7.984 kB / 1.037 GB, free: 2.734 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.4407, allocations: 11.95 kB / 1.037 GB, free: 2.723 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4407, allocations: 7.984 kB / 1.037 GB, free: 2.715 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.441, allocations: 241.1 kB / 1.038 GB, free: 2.465 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.386e-05/0.4411, allocations: 88.95 kB / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.4411, allocations: 0 / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.4413, allocations: 15.98 kB / 1.038 GB, free: 2.344 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.4413, allocations: 19.94 kB / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.4413, allocations: 0 / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.503e-05/0.4414, allocations: 107.2 kB / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1e-07/0.4414, allocations: 0 / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003258/0.4418, allocations: 51.94 kB / 1.038 GB, free: 2.168 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0003796/0.4421, allocations: 175.4 kB / 1.038 GB, free: 2.004 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000259/0.4424, allocations: 92.64 kB / 1.038 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4424, allocations: 3.938 kB / 1.038 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.4425, allocations: 59.91 kB / 1.038 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.4428, allocations: 24.11 kB / 1.038 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004857/0.4433, allocations: 240.6 kB / 1.039 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.4436, allocations: 0.7043 MB / 1.039 GB, free: 0.8359 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.23e-05/0.4437, allocations: 12.42 kB / 1.039 GB, free: 0.8203 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.4437, allocations: 11.44 kB / 1.039 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of SimCode: time 2.1e-07/0.4437, allocations: 0 / 1.039 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of Templates: time 0.004705/0.4484, allocations: 1.957 MB / 1.041 GB, free: 14.86 MB / 0.698 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