Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,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.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,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.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.444/2.444, allocations: 393.5 MB / 408.4 MB, free: 10.9 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.001111/0.001111, allocations: 179.8 kB / 0.4902 GB, free: 2.102 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.586/1.586, allocations: 223.2 MB / 0.7992 GB, free: 14.68 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.001058/0.001058, allocations: 100.3 kB / 0.9396 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003847, allocations: 7.188 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3288, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.5273, allocations: 152.3 MB / 1.378 GB, free: 1.18 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5276, allocations: 83.95 kB / 1.378 GB, free: 1.098 MB / 0.8698 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.0105/0.5382, allocations: 3.384 MB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.024e-06/0.5382, allocations: 0 / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.5382, allocations: 4 kB / 1.381 GB, free: 13.7 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.0008321/0.5391, allocations: 0.5002 MB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.5391, allocations: 16.5 kB / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.5392, allocations: 11.86 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.5394, allocations: 187.8 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.5394, allocations: 4 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.5394, allocations: 7.938 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.5397, allocations: 81.64 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.5397, allocations: 0 / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.5397, allocations: 0 / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.5397, allocations: 0 / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.5399, allocations: 59.91 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.5407, allocations: 336.7 kB / 1.383 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.5409, allocations: 86.66 kB / 1.383 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.5409, allocations: 4 kB / 1.383 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002211/0.5412, allocations: 95.39 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.874e-06/0.5412, allocations: 0 / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004782/0.5417, allocations: 189.3 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.5417, allocations: 59.39 kB / 1.383 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.5419, allocations: 130.5 kB / 1.383 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.5419, allocations: 25.7 kB / 1.383 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.542, allocations: 96.14 kB / 1.383 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.542, allocations: 31.78 kB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-06/0.542, allocations: 4 kB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.5421, allocations: 322.8 kB / 1.384 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.182e-05/0.5422, allocations: 31.98 kB / 1.384 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.5423, allocations: 73.06 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.881e-05/0.5424, allocations: 39.98 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5425, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002706/0.5427, allocations: 145.4 kB / 1.384 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.5428, allocations: 11.95 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5428, allocations: 0 / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.5428, allocations: 8.094 kB / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.5429, allocations: 19.92 kB / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.5429, allocations: 4 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.5431, allocations: 11.98 kB / 1.384 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.5431, allocations: 8 kB / 1.384 GB, free: 10.89 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.0001042/0.5432, allocations: 120.3 kB / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.5432, allocations: 7.906 kB / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003724/0.5436, allocations: 182.1 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.5436, allocations: 4 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.5436, allocations: 0 / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.5436, allocations: 3.938 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.5443, allocations: 474.3 kB / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.5443, allocations: 3.953 kB / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.669e-05/0.5444, allocations: 12 kB / 1.385 GB, free: 10.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.5444, allocations: 4 kB / 1.385 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.5445, allocations: 3.984 kB / 1.385 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.5445, allocations: 0 / 1.385 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5445, allocations: 0 / 1.385 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.5448, allocations: 267.1 kB / 1.385 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/0.5449, allocations: 88.97 kB / 1.385 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.5449, allocations: 4 kB / 1.385 GB, free: 9.645 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.5451, allocations: 11.98 kB / 1.385 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.574e-05/0.5451, allocations: 19.92 kB / 1.385 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.5452, allocations: 11.98 kB / 1.385 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.736e-05/0.5452, allocations: 105.2 kB / 1.385 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5452, allocations: 0 / 1.385 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003481/0.5456, allocations: 59.92 kB / 1.385 GB, free: 9.441 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 (14): * Single equations (assignments): 11 * 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.000402/0.546, allocations: 166 kB / 1.385 GB, free: 9.285 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002693/0.5463, allocations: 99.89 kB / 1.385 GB, free: 9.188 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5463, allocations: 3.938 kB / 1.385 GB, free: 9.184 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.5464, allocations: 55.97 kB / 1.385 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.5467, allocations: 20.11 kB / 1.386 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005256/0.5472, allocations: 263.1 kB / 1.386 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.5475, allocations: 0.7082 MB / 1.386 GB, free: 8.086 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.739e-05/0.5476, allocations: 8.562 kB / 1.386 GB, free: 8.078 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.5476, allocations: 23.42 kB / 1.386 GB, free: 8.055 MB / 0.8855 GB Notification: Performance of SimCode: time 4.21e-07/0.5476, allocations: 0 / 1.386 GB, free: 8.055 MB / 0.8855 GB Notification: Performance of Templates: time 0.005243/0.5529, allocations: 1.992 MB / 1.388 GB, free: 6.07 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time