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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.007039/0.007039, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001164/0.001164, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.389/1.389, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.759/2.759, allocations: 461.8 MB / 0.7348 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.75 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2841, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002868/0.287, allocations: 1.587 MB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2884, allocations: 0.7556 MB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.095e-05/0.2885, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.2886, allocations: 3.984 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.2887, allocations: 11.86 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005578/0.2893, allocations: 115.8 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.2894, allocations: 95.64 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.749e-05/0.2895, allocations: 4 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.2897, allocations: 43.89 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.514e-05/0.2897, allocations: 43.77 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.2898, allocations: 4 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.29, allocations: 95.84 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.29, allocations: 19.97 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.2901, allocations: 39.8 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.2903, allocations: 120 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2903, allocations: 3.938 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.71e-07/0.2903, allocations: 0 / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.2903, allocations: 0 / 1.056 GB, free: 5.336 MB / 0.8106 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.0008063/0.2911, allocations: 496.2 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2912, allocations: 15.97 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.246e-05/0.2913, allocations: 8.844 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.2914, allocations: 180.2 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.2914, allocations: 4.359 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.2915, allocations: 12.38 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.2917, allocations: 77.95 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2917, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.2917, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2917, allocations: 4 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.2919, allocations: 55.91 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.2925, allocations: 328.7 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.2927, allocations: 86.66 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2928, allocations: 52.88 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.2929, allocations: 0 / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.2931, allocations: 103.2 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.2931, allocations: 0 / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004396/0.2936, allocations: 173.5 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.2936, allocations: 55.39 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.2938, allocations: 139.9 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2938, allocations: 29.7 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.2938, allocations: 92.14 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.2939, allocations: 31.55 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.562e-05/0.2939, allocations: 29.7 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.294, allocations: 322.8 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.074e-05/0.2941, allocations: 31.97 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2942, allocations: 71.53 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.2944, allocations: 105.1 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2944, allocations: 4 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002594/0.2947, allocations: 137.4 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2947, allocations: 4 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2947, allocations: 3.938 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.2948, allocations: 7.938 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.2949, allocations: 19.92 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2949, allocations: 4 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.295, allocations: 15.92 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.295, allocations: 8.094 kB / 1.058 GB, free: 2.402 MB / 0.8106 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.0001007/0.2952, allocations: 129.7 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.2952, allocations: 7.906 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003439/0.2955, allocations: 154.3 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2955, allocations: 4.141 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2956, allocations: 3.984 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.2956, allocations: 0 / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.2962, allocations: 457.3 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2962, allocations: 0 / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.2963, allocations: 15.98 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2963, allocations: 0 / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.2963, allocations: 4 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2963, allocations: 3.984 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2963, allocations: 7.938 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.2966, allocations: 243.3 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.709e-05/0.2967, allocations: 92.86 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.2967, allocations: 4 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.2968, allocations: 7.984 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.2969, allocations: 15.92 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.2969, allocations: 4 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.105e-05/0.297, allocations: 103.3 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.297, allocations: 0 / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00033/0.2973, allocations: 47.98 kB / 1.059 GB, free: 1.02 MB / 0.8106 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.0003566/0.2977, allocations: 167.6 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.298, allocations: 95.89 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.298, allocations: 0 / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.2981, allocations: 51.97 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.2984, allocations: 15.98 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.2989, allocations: 271.5 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.2992, allocations: 0.6965 MB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.2992, allocations: 15.44 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.2992, allocations: 0 / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.003991/0.3032, allocations: 1.931 MB / 1.063 GB, free: 13.74 MB / 0.8262 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