Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.484/2.484, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.0012/0.0012, allocations: 166.8 kB / 0.4902 GB, free: 2.27 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.61/1.61, allocations: 223.1 MB / 0.7992 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 106.6 kB / 0.9396 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004, allocations: 7.938 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3296, allocations: 143 MB / 1.229 GB, free: 85.54 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.534, allocations: 152.3 MB / 1.378 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.5344, allocations: 83.95 kB / 1.378 GB, free: 12.95 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.01064/0.545, allocations: 3.312 MB / 1.381 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.934e-06/0.5451, allocations: 4 kB / 1.381 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.5451, allocations: 4 kB / 1.381 GB, free: 9.629 MB / 0.8855 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.000755/0.5459, allocations: 496.8 kB / 1.382 GB, free: 9.078 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.5459, allocations: 8.562 kB / 1.382 GB, free: 9.07 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.97e-05/0.546, allocations: 15.86 kB / 1.382 GB, free: 9.055 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.5462, allocations: 186.8 kB / 1.382 GB, free: 8.832 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.5462, allocations: 8 kB / 1.382 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.5462, allocations: 4 kB / 1.382 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.5464, allocations: 81.64 kB / 1.382 GB, free: 8.734 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.5465, allocations: 0 / 1.382 GB, free: 8.734 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.5465, allocations: 0 / 1.382 GB, free: 8.734 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5465, allocations: 0 / 1.382 GB, free: 8.734 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.5467, allocations: 67.88 kB / 1.382 GB, free: 8.668 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000617/0.5473, allocations: 324.8 kB / 1.382 GB, free: 8.301 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.5475, allocations: 82.7 kB / 1.382 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.5476, allocations: 8.141 kB / 1.382 GB, free: 8.203 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.5478, allocations: 107.4 kB / 1.383 GB, free: 8.086 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.994e-06/0.5478, allocations: 0 / 1.383 GB, free: 8.086 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004528/0.5483, allocations: 177.4 kB / 1.383 GB, free: 7.906 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.5483, allocations: 67.33 kB / 1.383 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.5484, allocations: 119 kB / 1.383 GB, free: 7.703 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.5485, allocations: 29.7 kB / 1.383 GB, free: 7.668 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.5485, allocations: 100.1 kB / 1.383 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.5486, allocations: 23.62 kB / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.5486, allocations: 4 kB / 1.383 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5487, allocations: 322.8 kB / 1.383 GB, free: 7.215 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.5489, allocations: 35.98 kB / 1.383 GB, free: 7.18 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.549, allocations: 67.52 kB / 1.383 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.5491, allocations: 43.98 kB / 1.384 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.5491, allocations: 3.938 kB / 1.384 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002602/0.5494, allocations: 137.4 kB / 1.384 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.5494, allocations: 4 kB / 1.384 GB, free: 6.906 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5494, allocations: 4 kB / 1.384 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.5495, allocations: 4 kB / 1.384 GB, free: 6.898 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.5496, allocations: 27.92 kB / 1.384 GB, free: 6.871 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.5496, allocations: 8.047 kB / 1.384 GB, free: 6.863 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.5497, allocations: 11.94 kB / 1.384 GB, free: 6.852 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.5497, allocations: 11.98 kB / 1.384 GB, free: 6.84 MB / 0.8855 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.0001067/0.5499, allocations: 123 kB / 1.384 GB, free: 6.711 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.5499, allocations: 7.906 kB / 1.384 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003563/0.5502, allocations: 162.3 kB / 1.384 GB, free: 6.535 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5503, allocations: 4 kB / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5503, allocations: 0 / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.5503, allocations: 7.938 kB / 1.384 GB, free: 6.523 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006004/0.5509, allocations: 458.3 kB / 1.384 GB, free: 6.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5509, allocations: 0 / 1.384 GB, free: 6.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.559e-05/0.551, allocations: 12.12 kB / 1.384 GB, free: 6.008 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.551, allocations: 4 kB / 1.384 GB, free: 6.004 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.551, allocations: 11.94 kB / 1.384 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.551, allocations: 0 / 1.384 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.551, allocations: 0 / 1.384 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.5514, allocations: 247.3 kB / 1.385 GB, free: 5.734 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.5514, allocations: 85.02 kB / 1.385 GB, free: 5.633 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.5515, allocations: 3.984 kB / 1.385 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.5516, allocations: 15.95 kB / 1.385 GB, free: 5.613 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/0.5516, allocations: 11.97 kB / 1.385 GB, free: 5.602 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.5517, allocations: 4 kB / 1.385 GB, free: 5.598 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.288e-05/0.5517, allocations: 99.27 kB / 1.385 GB, free: 5.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5517, allocations: 4 kB / 1.385 GB, free: 5.496 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003549/0.5521, allocations: 63.86 kB / 1.385 GB, free: 5.434 MB / 0.8855 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.0004183/0.5525, allocations: 175 kB / 1.385 GB, free: 5.273 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003254/0.5529, allocations: 99.89 kB / 1.385 GB, free: 5.176 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5529, allocations: 0 / 1.385 GB, free: 5.176 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.553, allocations: 47.98 kB / 1.385 GB, free: 5.129 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.5533, allocations: 19.92 kB / 1.385 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005468/0.5538, allocations: 255.5 kB / 1.386 GB, free: 4.828 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.5541, allocations: 0.7004 MB / 1.386 GB, free: 4.102 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.64e-05/0.5542, allocations: 8.438 kB / 1.386 GB, free: 4.094 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.5543, allocations: 19.42 kB / 1.386 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of SimCode: time 3e-07/0.5543, allocations: 0 / 1.386 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of Templates: time 0.005233/0.5595, allocations: 1.948 MB / 1.388 GB, free: 2.137 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","../files/Buildings_latest_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