Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,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.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_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.32/1.32, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.00107/0.00107, allocations: 191 kB / 326.5 MB, free: 2.242 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.845/1.845, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0008155/0.0008154, allocations: 94.05 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003551, allocations: 10.41 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2271, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1688/0.396, allocations: 134.1 MB / 1.031 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3963, allocations: 79.95 kB / 1.031 GB, free: 9.637 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.009676/0.4059, allocations: 3.347 MB / 1.034 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.533e-06/0.406, allocations: 0 / 1.034 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.406, allocations: 0 / 1.034 GB, free: 6.285 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.0006599/0.4066, allocations: 0.5038 MB / 1.035 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4067, allocations: 12.03 kB / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.4067, allocations: 11.81 kB / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.4069, allocations: 181.2 kB / 1.035 GB, free: 5.477 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.4069, allocations: 7.938 kB / 1.035 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.407, allocations: 8 kB / 1.035 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.4072, allocations: 81.62 kB / 1.035 GB, free: 5.375 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.4072, allocations: 0 / 1.035 GB, free: 5.375 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.4072, allocations: 4 kB / 1.035 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4072, allocations: 4 kB / 1.035 GB, free: 5.367 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.4074, allocations: 55.97 kB / 1.035 GB, free: 5.312 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.408, allocations: 336.6 kB / 1.036 GB, free: 4.934 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.4082, allocations: 86.61 kB / 1.036 GB, free: 4.84 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.4082, allocations: 0 / 1.036 GB, free: 4.84 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.4084, allocations: 111.5 kB / 1.036 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.532e-06/0.4085, allocations: 0 / 1.036 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004273/0.4089, allocations: 181.4 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.4089, allocations: 55.41 kB / 1.036 GB, free: 4.469 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.4091, allocations: 134.6 kB / 1.036 GB, free: 4.332 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.4091, allocations: 33.7 kB / 1.036 GB, free: 4.293 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.386e-05/0.4091, allocations: 96.12 kB / 1.036 GB, free: 4.195 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.4092, allocations: 19.72 kB / 1.036 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-06/0.4092, allocations: 4 kB / 1.036 GB, free: 4.172 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4093, allocations: 324.7 kB / 1.037 GB, free: 3.848 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.567e-05/0.4094, allocations: 35.92 kB / 1.037 GB, free: 3.812 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.471e-05/0.4095, allocations: 69.06 kB / 1.037 GB, free: 3.727 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.161e-05/0.4096, allocations: 43.97 kB / 1.037 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4096, allocations: 4 kB / 1.037 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002293/0.4098, allocations: 137.4 kB / 1.037 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4099, allocations: 4 kB / 1.037 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4099, allocations: 4 kB / 1.037 GB, free: 3.531 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.4099, allocations: 3.953 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.41, allocations: 20.02 kB / 1.037 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.41, allocations: 8 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.4101, allocations: 19.89 kB / 1.037 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.4102, allocations: 8 kB / 1.037 GB, free: 3.473 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 9.837e-05/0.4103, allocations: 119.9 kB / 1.037 GB, free: 3.348 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.4103, allocations: 11.91 kB / 1.037 GB, free: 3.336 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003577/0.4107, allocations: 178.2 kB / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4107, allocations: 3.953 kB / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4107, allocations: 0 / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4107, allocations: 0 / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/0.4113, allocations: 480.2 kB / 1.038 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4113, allocations: 0 / 1.038 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.4114, allocations: 15.98 kB / 1.038 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4114, allocations: 3.953 kB / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.4114, allocations: 0 / 1.038 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4114, allocations: 4 kB / 1.038 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4114, allocations: 0 / 1.038 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.4117, allocations: 251.3 kB / 1.038 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.534e-05/0.4118, allocations: 92.91 kB / 1.038 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.4119, allocations: 3.953 kB / 1.038 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.412, allocations: 15.98 kB / 1.038 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.412, allocations: 11.98 kB / 1.038 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.4121, allocations: 7.938 kB / 1.038 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.125e-05/0.4121, allocations: 107.2 kB / 1.038 GB, free: 2.086 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4121, allocations: 4 kB / 1.038 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003278/0.4125, allocations: 55.94 kB / 1.038 GB, free: 2.027 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 (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.0003704/0.4128, allocations: 174.1 kB / 1.038 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000255/0.4131, allocations: 115.8 kB / 1.038 GB, free: 1.754 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4131, allocations: 0 / 1.038 GB, free: 1.754 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.4132, allocations: 51.98 kB / 1.038 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.4135, allocations: 25 kB / 1.039 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004704/0.4139, allocations: 264.7 kB / 1.039 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.4142, allocations: 0.7083 MB / 1.039 GB, free: 0.6641 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.192e-05/0.4143, allocations: 8.547 kB / 1.039 GB, free: 0.6523 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.4143, allocations: 15.44 kB / 1.039 GB, free: 0.6406 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/0.4143, allocations: 0 / 1.039 GB, free: 0.6406 MB / 0.6823 GB Notification: Performance of Templates: time 0.004833/0.4192, allocations: 1.99 MB / 1.041 GB, free: 14.65 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_maint.7.0.x_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.freqHz,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