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.008117/0.008117, allocations: 96.95 kB / 15.73 MB, free: 6.484 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.001859/0.001859, allocations: 192 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.436/2.436, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 66.36 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2829, 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.002455/0.2854, allocations: 1.527 MB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2867, allocations: 0.7531 MB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.249e-05/0.2868, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.713e-05/0.2869, allocations: 7.875 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.386e-05/0.2869, allocations: 11.88 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.2875, allocations: 131.6 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.2876, allocations: 103.6 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.186e-05/0.2877, allocations: 11.98 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.2878, allocations: 51.84 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.221e-05/0.2879, allocations: 43.81 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.2879, allocations: 8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.2881, allocations: 95.91 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.977e-05/0.2882, allocations: 23.91 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.927e-05/0.2882, allocations: 39.8 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.2885, allocations: 171.5 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2885, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2885, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2885, allocations: 0 / 1.09 GB, free: 15.06 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.0006906/0.2892, allocations: 0.4883 MB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2892, allocations: 8.031 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.501e-05/0.2893, allocations: 38.73 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.2893, allocations: 16.89 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2894, allocations: 172.3 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.2895, allocations: 12.36 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.2895, allocations: 4.375 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.2897, allocations: 85.7 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2897, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.2897, allocations: 4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.2897, allocations: 4 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.2899, allocations: 43.97 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.2904, allocations: 348.6 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.2906, allocations: 78.67 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.069e-05/0.2907, allocations: 40.84 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.2907, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.291, allocations: 103.3 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.291, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004234/0.2914, allocations: 181.5 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.2915, allocations: 55.39 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.847e-05/0.2916, allocations: 136.5 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.2916, allocations: 29.7 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.699e-05/0.2916, allocations: 88.14 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.2917, allocations: 35.67 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.2917, allocations: 33.7 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.797e-05/0.2918, allocations: 326.8 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.539e-05/0.2919, allocations: 31.97 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.59e-05/0.292, allocations: 69.08 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.2922, allocations: 109 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2922, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002499/0.2925, allocations: 141.5 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.2925, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2925, allocations: 7.938 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2925, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2927, allocations: 24.02 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2927, allocations: 4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2928, allocations: 11.94 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.2928, allocations: 8 kB / 1.093 GB, free: 12.07 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 8.852e-05/0.2929, allocations: 127.1 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2929, allocations: 7.953 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.2933, allocations: 170.8 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2933, allocations: 4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.2933, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.2933, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.2938, allocations: 445.4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2939, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.611e-05/0.2939, allocations: 19.98 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.294, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.294, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.294, allocations: 11.94 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.294, allocations: 7.984 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.2943, allocations: 239.4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.2943, allocations: 85.06 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.2944, allocations: 7.938 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.2945, allocations: 11.98 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.2945, allocations: 7.984 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.2946, allocations: 8 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.622e-05/0.2946, allocations: 109.7 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2946, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003114/0.2949, allocations: 47.92 kB / 1.094 GB, free: 10.69 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.0007425/0.2957, allocations: 0.8479 MB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.2959, allocations: 91.89 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.296, allocations: 0 / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.2961, allocations: 51.91 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.2964, allocations: 24.17 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.298, allocations: 1.644 MB / 1.097 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.2982, allocations: 0.6963 MB / 1.098 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.295e-05/0.2983, allocations: 12.44 kB / 1.098 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.2983, allocations: 31.42 kB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2983, allocations: 0 / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.3173, allocations: 3.311 MB / 1.101 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.694, allocations: 11.38 kB / 1.101 GB, free: 3.945 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