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: "" <> 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.001163/0.001163, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.951/2.951, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 66.06 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2974, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002913/0.3003, allocations: 1.524 MB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3017, allocations: 0.7495 MB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.37e-05/0.3017, allocations: 7.938 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.624e-05/0.3018, allocations: 7.922 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.876e-05/0.3019, allocations: 19.8 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.3025, allocations: 131.5 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.3027, allocations: 95.7 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.828e-05/0.3028, allocations: 15.98 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.3029, allocations: 43.83 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.692e-05/0.303, allocations: 47.83 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.213e-05/0.303, allocations: 8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.3032, allocations: 103.8 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.3033, allocations: 15.92 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.044e-05/0.3033, allocations: 43.78 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.3036, allocations: 163.8 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3036, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.734e-06/0.3036, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.3036, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 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.0007646/0.3044, allocations: 496.2 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3044, allocations: 12.03 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.3045, allocations: 38.75 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.3045, allocations: 8.844 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.3047, allocations: 184.1 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3047, allocations: 4.375 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.3047, allocations: 8.375 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.3049, allocations: 85.77 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.305, allocations: 0 / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.305, allocations: 0 / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.305, allocations: 4 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.3052, allocations: 55.95 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.3057, allocations: 328.6 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.3059, allocations: 86.67 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.793e-05/0.306, allocations: 36.84 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.306, allocations: 4 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.3063, allocations: 103.3 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.3063, allocations: 4 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004117/0.3067, allocations: 169.5 kB / 1.068 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.3068, allocations: 59.41 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.844e-05/0.3069, allocations: 131.7 kB / 1.068 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.3069, allocations: 25.7 kB / 1.068 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.3069, allocations: 96.05 kB / 1.068 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.307, allocations: 35.56 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.047e-05/0.307, allocations: 37.64 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.3071, allocations: 322.8 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.998e-05/0.3072, allocations: 31.98 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.82e-05/0.3073, allocations: 75.23 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.3075, allocations: 105.1 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3075, allocations: 7.938 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002479/0.3078, allocations: 133.4 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.3078, allocations: 4 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3078, allocations: 4 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3078, allocations: 0 / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3079, allocations: 19.92 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.308, allocations: 7.984 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.3081, allocations: 27.92 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.3081, allocations: 4 kB / 1.069 GB, free: 8.578 MB / 0.8262 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 9.53e-05/0.3082, allocations: 129.7 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.16e-05/0.3082, allocations: 7.906 kB / 1.069 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.3086, allocations: 154.3 kB / 1.069 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3086, allocations: 0 / 1.069 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3086, allocations: 8 kB / 1.069 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3086, allocations: 0 / 1.069 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.3092, allocations: 456.5 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3092, allocations: 0 / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.39e-05/0.3093, allocations: 8 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3093, allocations: 0 / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.3093, allocations: 11.98 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3093, allocations: 3.938 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3093, allocations: 4 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.3096, allocations: 243.2 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.3097, allocations: 88.95 kB / 1.07 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.3097, allocations: 0 / 1.07 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3098, allocations: 11.92 kB / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.3099, allocations: 15.98 kB / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3099, allocations: 8.141 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.368e-05/0.31, allocations: 107.2 kB / 1.07 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.31, allocations: 0 / 1.07 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000317/0.3103, allocations: 40 kB / 1.07 GB, free: 7.203 MB / 0.8262 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.0007665/0.3111, allocations: 0.8438 MB / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.3114, allocations: 99.88 kB / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3114, allocations: 0 / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.3115, allocations: 55.92 kB / 1.071 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.3118, allocations: 24.11 kB / 1.071 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.3135, allocations: 1.627 MB / 1.073 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.3137, allocations: 0.7002 MB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.041e-05/0.3137, allocations: 12.42 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.009e-05/0.3138, allocations: 27.42 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3138, allocations: 0 / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.3327, allocations: 3.275 MB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.951, allocations: 13.41 kB / 1.077 GB, free: 0.5 MB / 0.8262 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 50 --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