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.462/1.462, allocations: 249.3 MB / 261.8 MB, free: 5.738 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.000979/0.0009791, allocations: 184.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.000786/0.0007861, allocations: 90.47 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.438e-05/3.459e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2435, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7743/1.018, allocations: 134 MB / 1.023 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/1.018, allocations: 79.89 kB / 1.023 GB, free: 0.6836 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.01003/1.028, allocations: 3.322 MB / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.485e-06/1.028, allocations: 0 / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.105e-06/1.028, allocations: 0 / 1.026 GB, free: 13.84 MB / 0.6511 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.0006323/1.029, allocations: 497.7 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/1.029, allocations: 8.031 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/1.029, allocations: 7.906 kB / 1.026 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/1.029, allocations: 186.8 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/1.029, allocations: 7.062 kB / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/1.029, allocations: 4 kB / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/1.029, allocations: 83.02 kB / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/1.029, allocations: 0 / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/1.03, allocations: 2.812 kB / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/1.03, allocations: 4 kB / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.969e-05/1.03, allocations: 41.05 kB / 1.027 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/1.03, allocations: 326.6 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/1.03, allocations: 84.38 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.375e-05/1.031, allocations: 38.72 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/1.031, allocations: 4 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/1.031, allocations: 93.64 kB / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/1.031, allocations: 0 / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0003181/1.031, allocations: 137 kB / 1.027 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/1.031, allocations: 51.41 kB / 1.027 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/1.031, allocations: 133.9 kB / 1.028 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/1.031, allocations: 33.06 kB / 1.028 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/1.031, allocations: 94.7 kB / 1.028 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/1.031, allocations: 35.38 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-06/1.031, allocations: 0 / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001373/1.032, allocations: 325.7 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.863e-05/1.032, allocations: 27.75 kB / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.142e-05/1.032, allocations: 66.55 kB / 1.028 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.325e-05/1.032, allocations: 26.23 kB / 1.028 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.032, allocations: 0 / 1.028 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001993/1.032, allocations: 125.6 kB / 1.028 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/1.032, allocations: 4 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/1.032, allocations: 7.953 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/1.032, allocations: 0 / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/1.032, allocations: 26.86 kB / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/1.032, allocations: 0 / 1.028 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/1.032, allocations: 15.98 kB / 1.028 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/1.032, allocations: 7.281 kB / 1.028 GB, free: 11.36 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 7.334e-05/1.032, allocations: 119.8 kB / 1.028 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/1.032, allocations: 15.8 kB / 1.028 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/1.033, allocations: 162.4 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/1.033, allocations: 3.953 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/1.033, allocations: 0 / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.033, allocations: 0 / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005699/1.033, allocations: 462.5 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/1.033, allocations: 0 / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-05/1.033, allocations: 19.94 kB / 1.029 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/1.033, allocations: 3.984 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/1.033, allocations: 7.984 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.033, allocations: 0 / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/1.033, allocations: 0 / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002681/1.034, allocations: 238.6 kB / 1.029 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/1.034, allocations: 85.02 kB / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/1.034, allocations: 3.953 kB / 1.029 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/1.034, allocations: 15.86 kB / 1.029 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/1.034, allocations: 7.984 kB / 1.029 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/1.034, allocations: 7.984 kB / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.915e-05/1.034, allocations: 108.6 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.81e-07/1.034, allocations: 4 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003471/1.035, allocations: 55.8 kB / 1.03 GB, free: 10.11 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.0004106/1.035, allocations: 173.7 kB / 1.03 GB, free: 9.949 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001907/1.035, allocations: 77.67 kB / 1.03 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.035, allocations: 4.062 kB / 1.03 GB, free: 9.887 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/1.035, allocations: 54.42 kB / 1.03 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/1.035, allocations: 19.61 kB / 1.03 GB, free: 9.832 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/1.036, allocations: 159 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/1.036, allocations: 0.7082 MB / 1.031 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.542e-05/1.036, allocations: 12.55 kB / 1.031 GB, free: 8.926 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.216e-05/1.036, allocations: 15.44 kB / 1.031 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of SimCode: time 3.01e-07/1.036, allocations: 0 / 1.031 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of Templates: time 0.005092/1.041, allocations: 1.998 MB / 1.033 GB, free: 6.93 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