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.001203/0.001203, allocations: 108 kB / 16.41 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.001198/0.001198, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.58/2.58, allocations: 461.9 MB / 0.7355 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 59.91 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7579/0.7592, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002689/0.762, allocations: 1.518 MB / 1.21 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.7635, allocations: 0.7518 MB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.7637, allocations: 3.938 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.638e-05/0.7637, allocations: 3.938 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.7639, allocations: 19.78 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007815/0.7647, allocations: 127.6 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.7649, allocations: 95.7 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.7651, allocations: 23.97 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.7652, allocations: 51.77 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.7654, allocations: 43.83 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.7654, allocations: 8 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.7657, allocations: 99.84 kB / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.25e-05/0.7657, allocations: 23.91 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.793e-05/0.7658, allocations: 35.8 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.7662, allocations: 155.4 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.7662, allocations: 0 / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7662, allocations: 0 / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.524e-05/0.7662, allocations: 8 kB / 1.211 GB, free: 10.66 MB / 0.9356 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.001035/0.7673, allocations: 498 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.7673, allocations: 12.03 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.7674, allocations: 8.844 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.7676, allocations: 184.1 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.7676, allocations: 4.375 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.7677, allocations: 12.31 kB / 1.212 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.7679, allocations: 81.95 kB / 1.212 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.7679, allocations: 0 / 1.212 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.768, allocations: 4 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.768, allocations: 4 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.7682, allocations: 51.91 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006832/0.7688, allocations: 336.6 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.7691, allocations: 86.67 kB / 1.213 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.141e-05/0.7692, allocations: 36.84 kB / 1.213 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.7692, allocations: 96 / 1.213 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.7695, allocations: 103.3 kB / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.7695, allocations: 0 / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004317/0.7699, allocations: 177.8 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.77, allocations: 59.39 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.7701, allocations: 136.2 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.7701, allocations: 29.7 kB / 1.213 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.7702, allocations: 100 kB / 1.213 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.7702, allocations: 31.58 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.7703, allocations: 29.7 kB / 1.213 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.7704, allocations: 326.8 kB / 1.213 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-05/0.7705, allocations: 31.97 kB / 1.214 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.88e-05/0.7706, allocations: 67.11 kB / 1.214 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.7708, allocations: 109.1 kB / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7708, allocations: 0 / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002839/0.7711, allocations: 141.4 kB / 1.214 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.7711, allocations: 4 kB / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.7711, allocations: 4 kB / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.7711, allocations: 0 / 1.214 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.7713, allocations: 24.02 kB / 1.214 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.7713, allocations: 7.984 kB / 1.214 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.7714, allocations: 15.89 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.7714, allocations: 8 kB / 1.214 GB, free: 7.711 MB / 0.9356 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.0001118/0.7715, allocations: 128.2 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.233e-05/0.7716, allocations: 11.84 kB / 1.214 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003457/0.7719, allocations: 170.3 kB / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.7719, allocations: 0 / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7719, allocations: 3.938 kB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.772, allocations: 0 / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005879/0.7725, allocations: 450.3 kB / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.7726, allocations: 4 kB / 1.215 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.228e-05/0.7726, allocations: 11.98 kB / 1.215 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7726, allocations: 0 / 1.215 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.7727, allocations: 0 / 1.215 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.306e-06/0.7727, allocations: 15.92 kB / 1.215 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7727, allocations: 0 / 1.215 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.773, allocations: 242.2 kB / 1.215 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.773, allocations: 81.02 kB / 1.215 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.7731, allocations: 11.94 kB / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.7732, allocations: 11.98 kB / 1.215 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.7733, allocations: 15.98 kB / 1.215 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.7733, allocations: 4 kB / 1.215 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.951e-05/0.7733, allocations: 99.27 kB / 1.215 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.41e-07/0.7734, allocations: 0 / 1.215 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003277/0.7737, allocations: 51.92 kB / 1.215 GB, free: 6.316 MB / 0.9356 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.0003539/0.774, allocations: 163.7 kB / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002617/0.7743, allocations: 95.83 kB / 1.215 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7743, allocations: 0 / 1.215 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.7745, allocations: 51.97 kB / 1.215 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.7748, allocations: 21.95 kB / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004989/0.7753, allocations: 253.7 kB / 1.216 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.7755, allocations: 0.6963 MB / 1.216 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.7756, allocations: 19.42 kB / 1.216 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.7756, allocations: 0 / 1.216 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of Templates: time 0.004028/0.7796, allocations: 1.931 MB / 1.218 GB, free: 3.043 MB / 0.9356 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/jenkins1/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