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.458/1.458, allocations: 249.5 MB / 257 MB, free: 6.969 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.001266/0.001265, allocations: 176 kB / 316.3 MB, free: 3.227 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.438/1.438, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008046/0.0008047, allocations: 82.55 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.125e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.232, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8023/1.034, allocations: 134.3 MB / 1.016 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/1.035, allocations: 77.58 kB / 1.016 GB, free: 3.496 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.009996/1.045, allocations: 3.313 MB / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.723e-06/1.045, allocations: 0 / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.266e-06/1.045, allocations: 0 / 1.02 GB, free: 0.6914 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.0006192/1.045, allocations: 492.4 kB / 1.02 GB, free: 160 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/1.045, allocations: 8.031 kB / 1.02 GB, free: 152 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/1.046, allocations: 7.906 kB / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/1.046, allocations: 192.7 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/1.046, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/1.046, allocations: 7.938 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001173/1.046, allocations: 34.05 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/1.046, allocations: 71.47 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/1.046, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/1.046, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/1.046, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/1.047, allocations: 315.3 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/1.047, allocations: 70.23 kB / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.568e-05/1.047, allocations: 38.17 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/1.047, allocations: 8.125 kB / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/1.047, allocations: 89.78 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/1.047, allocations: 0 / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.00033/1.047, allocations: 136.2 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/1.048, allocations: 51.41 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/1.048, allocations: 127.8 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/1.048, allocations: 33.7 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.933e-05/1.048, allocations: 94.77 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/1.048, allocations: 30.67 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/1.048, allocations: 0 / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.048, allocations: 320.8 kB / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.429e-05/1.048, allocations: 18.62 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.035e-05/1.048, allocations: 60.89 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.472e-05/1.048, allocations: 34.73 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/1.048, allocations: 0 / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001839/1.048, allocations: 109.3 kB / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/1.048, allocations: 4 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.048, allocations: 4 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/1.048, allocations: 0 / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/1.049, allocations: 31.97 kB / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/1.049, allocations: 0 / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.468e-05/1.049, allocations: 11.98 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/1.049, allocations: 8 kB / 1.022 GB, free: 14.29 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 0.0001041/1.049, allocations: 109.5 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/1.049, allocations: 19.75 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/1.049, allocations: 155.7 kB / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/1.049, allocations: 0 / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/1.049, allocations: 7.953 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/1.049, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/1.05, allocations: 417.3 kB / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.05, allocations: 0 / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.104e-05/1.05, allocations: 16 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.05, allocations: 4 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/1.05, allocations: 3.984 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.05, allocations: 3.953 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.05, allocations: 144 / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/1.05, allocations: 234.4 kB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/1.05, allocations: 85.02 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/1.05, allocations: 3.984 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/1.05, allocations: 12 kB / 1.023 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/1.05, allocations: 15.92 kB / 1.023 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/1.05, allocations: 11.62 kB / 1.023 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.591e-05/1.05, allocations: 106 kB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.2e-07/1.05, allocations: 0 / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003059/1.051, allocations: 47.94 kB / 1.023 GB, free: 13.09 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 (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.0004007/1.051, allocations: 170.3 kB / 1.023 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001968/1.051, allocations: 78.22 kB / 1.023 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.051, allocations: 3.938 kB / 1.023 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.926e-05/1.052, allocations: 46.62 kB / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/1.052, allocations: 17.86 kB / 1.023 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003769/1.052, allocations: 146.6 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/1.052, allocations: 0.7002 MB / 1.024 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.591e-05/1.053, allocations: 12.55 kB / 1.024 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/1.053, allocations: 19.44 kB / 1.024 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/1.053, allocations: 0 / 1.024 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of Templates: time 0.004741/1.057, allocations: 1.964 MB / 1.026 GB, free: 9.973 MB / 0.6511 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