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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0082/0.0082, allocations: 100.2 kB / 15.73 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 186.9 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.823/2.823, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.91 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3613, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002544/0.3638, allocations: 1.511 MB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3651, allocations: 0.7638 MB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.115e-05/0.3651, allocations: 0 / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.3652, allocations: 11.81 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.3653, allocations: 15.86 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.3658, allocations: 131.5 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.3659, allocations: 99.75 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.925e-05/0.366, allocations: 15.92 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.778e-05/0.3661, allocations: 39.86 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.3662, allocations: 47.81 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.3662, allocations: 8 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.3664, allocations: 95.91 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.749e-05/0.3664, allocations: 27.84 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.3665, allocations: 35.8 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.3667, allocations: 171.5 kB / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3667, allocations: 0 / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3667, allocations: 0 / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3667, allocations: 0 / 1.211 GB, free: 6.707 MB / 0.9669 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.0007351/0.3675, allocations: 0.4885 MB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3675, allocations: 8.625 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.3676, allocations: 8.844 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.3677, allocations: 172.2 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.3677, allocations: 16.31 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.3678, allocations: 8.359 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.368, allocations: 85.95 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.368, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.368, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.368, allocations: 3.984 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.3682, allocations: 51.97 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005454/0.3687, allocations: 340.6 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.3689, allocations: 78.67 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.664e-05/0.3691, allocations: 40.83 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.3691, allocations: 4 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.3693, allocations: 103.4 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.3693, allocations: 3.938 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004353/0.3698, allocations: 169.5 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.3698, allocations: 55.41 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.37, allocations: 140.5 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.37, allocations: 29.7 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.37, allocations: 100.1 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.3701, allocations: 31.66 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.345e-05/0.3701, allocations: 33.7 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3703, allocations: 326.8 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.638e-05/0.3703, allocations: 31.92 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.3705, allocations: 73.12 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.3706, allocations: 105.1 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3706, allocations: 4 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002421/0.3709, allocations: 137.4 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3709, allocations: 12.09 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3709, allocations: 144 / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3709, allocations: 4 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.3711, allocations: 23.91 kB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3711, allocations: 0 / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.775e-05/0.3712, allocations: 15.84 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.3712, allocations: 11.98 kB / 1.213 GB, free: 3.754 MB / 0.9669 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.3713, allocations: 117.8 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.3713, allocations: 19.84 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003278/0.3717, allocations: 155.5 kB / 1.213 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3717, allocations: 0 / 1.213 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3717, allocations: 0 / 1.213 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3717, allocations: 7.984 kB / 1.213 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005731/0.3723, allocations: 450.3 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.3723, allocations: 0 / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.608e-05/0.3724, allocations: 15.98 kB / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3724, allocations: 0 / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.3724, allocations: 4 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3724, allocations: 3.938 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3724, allocations: 0 / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.3727, allocations: 244.5 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.852e-05/0.3728, allocations: 88.95 kB / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.3728, allocations: 11.92 kB / 1.214 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.3729, allocations: 12 kB / 1.214 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/0.373, allocations: 11.98 kB / 1.214 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.373, allocations: 7.984 kB / 1.214 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.365e-05/0.3731, allocations: 102.2 kB / 1.214 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3731, allocations: 0 / 1.214 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003009/0.3734, allocations: 40 kB / 1.214 GB, free: 2.383 MB / 0.9669 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000325/0.3737, allocations: 175.1 kB / 1.215 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.374, allocations: 96.02 kB / 1.215 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.374, allocations: 0 / 1.215 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.3741, allocations: 47.98 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.3744, allocations: 28.25 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.3749, allocations: 227.8 kB / 1.215 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.3751, allocations: 0.6963 MB / 1.216 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.951e-05/0.3752, allocations: 12.42 kB / 1.216 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.3752, allocations: 15.44 kB / 1.216 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.3752, allocations: 0 / 1.216 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of Templates: time 0.00509/0.3803, allocations: 1.959 MB / 1.218 GB, free: 15.09 MB / 0.9825 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches