Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_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.0101/0.0101, allocations: 102 kB / 15.73 MB, free: 6.477 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.001969/0.001969, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.413/2.413, allocations: 390.2 MB / 0.6648 GB, free: 292 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 66.08 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2757, allocations: 140.4 MB / 1.087 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003083/0.2788, allocations: 1.518 MB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2803, allocations: 0.757 MB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.2804, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.37e-05/0.2805, allocations: 15.86 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.757e-05/0.2806, allocations: 7.875 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.2811, allocations: 131.5 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.2813, allocations: 103.7 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.2814, allocations: 11.98 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.2815, allocations: 47.84 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.2816, allocations: 47.81 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.2817, allocations: 8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.2819, allocations: 95.84 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.642e-05/0.2819, allocations: 23.92 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.412e-05/0.282, allocations: 47.77 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.2823, allocations: 154.4 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2823, allocations: 0 / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2823, allocations: 3.938 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.2823, allocations: 0 / 1.09 GB, free: 15.07 MB / 0.8575 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.0009044/0.2833, allocations: 0.4893 MB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2833, allocations: 8.031 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.502e-05/0.2834, allocations: 42.72 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.2834, allocations: 12.84 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.2836, allocations: 176.2 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2836, allocations: 4.375 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.2836, allocations: 8.375 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.2838, allocations: 81.77 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.2839, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.2839, allocations: 4 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2839, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2841, allocations: 59.89 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.2847, allocations: 328.7 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.2849, allocations: 86.67 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.667e-05/0.285, allocations: 40.92 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.285, allocations: 3.938 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.2853, allocations: 95.3 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.492e-06/0.2853, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004566/0.2858, allocations: 177.5 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.2858, allocations: 55.41 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.286, allocations: 132.9 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.286, allocations: 33.64 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.2861, allocations: 104 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.2861, allocations: 23.7 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.459e-05/0.2862, allocations: 29.7 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2863, allocations: 330.8 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.13e-05/0.2864, allocations: 31.92 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2865, allocations: 69.12 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.2867, allocations: 109.1 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2867, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002733/0.287, allocations: 141.5 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.287, allocations: 4 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.287, allocations: 4 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.287, allocations: 96 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.2872, allocations: 27.86 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2872, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.2873, allocations: 11.94 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2873, allocations: 11.98 kB / 1.093 GB, free: 12.08 MB / 0.8575 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.0001017/0.2874, allocations: 127.1 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.2874, allocations: 15.81 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.2878, allocations: 162.3 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2878, allocations: 0 / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2878, allocations: 0 / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.2878, allocations: 3.984 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006262/0.2885, allocations: 457.4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2885, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.704e-05/0.2886, allocations: 11.98 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2886, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.2886, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.2886, allocations: 11.94 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2886, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.2889, allocations: 243.2 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/0.289, allocations: 81.02 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.289, allocations: 15.92 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.2892, allocations: 4 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.2892, allocations: 15.98 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.2893, allocations: 7.984 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.822e-05/0.2893, allocations: 101.7 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2894, allocations: 4 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003428/0.2897, allocations: 43.94 kB / 1.094 GB, free: 10.7 MB / 0.8575 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.000859/0.2906, allocations: 0.843 MB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002724/0.2909, allocations: 91.89 kB / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2909, allocations: 0 / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.291, allocations: 55.91 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.2913, allocations: 20.17 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.2932, allocations: 1.642 MB / 1.097 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.2935, allocations: 0.6963 MB / 1.097 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.445e-05/0.2935, allocations: 12.42 kB / 1.097 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.2936, allocations: 35.42 kB / 1.098 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.2936, allocations: 0 / 1.098 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.3144, allocations: 3.315 MB / 1.101 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/7.884, allocations: 6.094 kB / 1.101 GB, free: 3.965 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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