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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004566/0.004566, allocations: 100.7 kB / 15.73 MB, free: 6.051 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.001517/0.001517, allocations: 192.9 kB / 16.67 MB, free: 5.969 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 63.34 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2761, allocations: 162.2 MB / 1.241 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002725/0.2788, allocations: 1.525 MB / 1.243 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.2802, allocations: 0.7493 MB / 1.244 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.336e-05/0.2803, allocations: 4 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.333e-05/0.2803, allocations: 7.875 kB / 1.244 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.122e-05/0.2804, allocations: 15.86 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005361/0.281, allocations: 127.6 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.2811, allocations: 103.6 kB / 1.244 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.738e-05/0.2812, allocations: 19.97 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.2813, allocations: 39.84 kB / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.426e-05/0.2814, allocations: 47.81 kB / 1.244 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.2815, allocations: 15.94 kB / 1.244 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.2817, allocations: 99.84 kB / 1.244 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.357e-05/0.2817, allocations: 19.92 kB / 1.244 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.955e-05/0.2818, allocations: 43.78 kB / 1.244 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.2821, allocations: 163.7 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.2821, allocations: 0 / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2821, allocations: 0 / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.2821, allocations: 0 / 1.244 GB, free: 6.332 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.000805/0.2829, allocations: 0.4977 MB / 1.245 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.283, allocations: 8.031 kB / 1.245 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.281e-05/0.283, allocations: 42.75 kB / 1.245 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.2831, allocations: 8.891 kB / 1.245 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.2832, allocations: 176.3 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2832, allocations: 4.375 kB / 1.245 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.2833, allocations: 8.375 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.2835, allocations: 85.7 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.2835, allocations: 0 / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.2835, allocations: 4 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2835, allocations: 4 kB / 1.245 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.2837, allocations: 51.95 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005715/0.2843, allocations: 336.6 kB / 1.246 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.2845, allocations: 86.67 kB / 1.246 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2847, allocations: 36.84 kB / 1.246 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.2847, allocations: 4 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.2849, allocations: 95.44 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.2849, allocations: 3.938 kB / 1.246 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004684/0.2854, allocations: 181.5 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.2855, allocations: 59.41 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.2856, allocations: 132.8 kB / 1.246 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.2856, allocations: 25.7 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.023e-05/0.2857, allocations: 100.1 kB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.2858, allocations: 27.78 kB / 1.246 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/0.2858, allocations: 33.7 kB / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.286, allocations: 326.8 kB / 1.247 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-05/0.2861, allocations: 31.98 kB / 1.247 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.2862, allocations: 73.06 kB / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.2864, allocations: 113 kB / 1.247 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2864, allocations: 0 / 1.247 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002839/0.2867, allocations: 137.4 kB / 1.247 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.2867, allocations: 4 kB / 1.247 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2868, allocations: 4 kB / 1.247 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.2868, allocations: 0 / 1.247 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.2869, allocations: 19.98 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.2869, allocations: 11.92 kB / 1.247 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.287, allocations: 12.09 kB / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.287, allocations: 4 kB / 1.247 GB, free: 3.34 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.0001199/0.2872, allocations: 132.1 kB / 1.247 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.2872, allocations: 7.953 kB / 1.247 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/0.2876, allocations: 162.3 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2876, allocations: 3.938 kB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2876, allocations: 0 / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2876, allocations: 4 kB / 1.247 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006708/0.2883, allocations: 450.3 kB / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2883, allocations: 0 / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.497e-05/0.2884, allocations: 8 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.2884, allocations: 3.984 kB / 1.248 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.2884, allocations: 12 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2884, allocations: 3.938 kB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2884, allocations: 0 / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.2888, allocations: 247.4 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.2889, allocations: 85.06 kB / 1.248 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.2889, allocations: 3.938 kB / 1.248 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.289, allocations: 15.92 kB / 1.248 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.2891, allocations: 7.984 kB / 1.248 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.2891, allocations: 7.984 kB / 1.248 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.554e-05/0.2892, allocations: 113.5 kB / 1.248 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2892, allocations: 0 / 1.248 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003177/0.2895, allocations: 39.94 kB / 1.248 GB, free: 1.953 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.0009341/0.2905, allocations: 0.8335 MB / 1.249 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.2907, allocations: 97.83 kB / 1.249 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2907, allocations: 0 / 1.249 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.2909, allocations: 55.95 kB / 1.249 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.2912, allocations: 20.55 kB / 1.249 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.2932, allocations: 1.65 MB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.2935, allocations: 0.6962 MB / 1.251 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.357e-05/0.2936, allocations: 12.42 kB / 1.251 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.2937, allocations: 35.42 kB / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2937, allocations: 0 / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.3179, allocations: 3.319 MB / 1.255 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/8.082, allocations: 16.11 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,lig.pInter,booleanPulse.period,booleanPulse.startTime