Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Love1998Light1,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",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.007453/0.007453, allocations: 101.2 kB / 15.73 MB, free: 6.496 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.001861/0.001861, allocations: 199.1 kB / 16.68 MB, free: 6.375 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 75.83 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2774, allocations: 162.2 MB / 1.241 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.002719/0.2802, allocations: 1.509 MB / 1.243 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.2816, allocations: 0.7595 MB / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.883e-05/0.2816, allocations: 0 / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.2817, allocations: 3.938 kB / 1.244 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.796e-05/0.2818, allocations: 23.78 kB / 1.244 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005082/0.2823, allocations: 119.6 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.2824, allocations: 79.78 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.645e-05/0.2825, allocations: 27.91 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.837e-05/0.2826, allocations: 35.84 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.2827, allocations: 39.83 kB / 1.244 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.2827, allocations: 8 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.2829, allocations: 99.84 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.183e-05/0.283, allocations: 19.91 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.429e-05/0.283, allocations: 35.86 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.2833, allocations: 139.5 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2833, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2833, allocations: 3.938 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.2833, allocations: 4 kB / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007594/0.2841, allocations: 466.3 kB / 1.245 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2841, allocations: 12.03 kB / 1.245 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.922e-05/0.2842, allocations: 34.73 kB / 1.245 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.472e-05/0.2842, allocations: 8.891 kB / 1.245 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.2844, allocations: 184.2 kB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.2844, allocations: 4.375 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.2844, allocations: 8.375 kB / 1.245 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.2846, allocations: 81.7 kB / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.2847, allocations: 0 / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.2848, allocations: 47.91 kB / 1.245 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.2854, allocations: 324.7 kB / 1.245 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.2856, allocations: 58.56 kB / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.861e-05/0.2857, allocations: 32.84 kB / 1.245 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.2857, allocations: 4 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2859, allocations: 95.38 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.2859, allocations: 0 / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004143/0.2864, allocations: 157.5 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.2864, allocations: 59.41 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.2865, allocations: 137.1 kB / 1.246 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.2866, allocations: 29.7 kB / 1.246 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.2866, allocations: 92.36 kB / 1.246 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.2867, allocations: 24 kB / 1.246 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.468e-05/0.2867, allocations: 33.7 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2869, allocations: 326.8 kB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.287, allocations: 27.98 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.2871, allocations: 77 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.2873, allocations: 105.1 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2873, allocations: 384 / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002712/0.2876, allocations: 125.5 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2876, allocations: 8 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2876, allocations: 128 / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2876, allocations: 11.94 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2878, allocations: 11.98 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.2878, allocations: 7.938 kB / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.2879, allocations: 23.88 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.2879, allocations: 4 kB / 1.247 GB, free: 4.48 MB / 0.9981 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001001/0.288, allocations: 118.3 kB / 1.247 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.2881, allocations: 11.94 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003384/0.2884, allocations: 149.9 kB / 1.247 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2884, allocations: 4 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2884, allocations: 0 / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2884, allocations: 0 / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006213/0.2891, allocations: 426.3 kB / 1.247 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2891, allocations: 0 / 1.247 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.2892, allocations: 11.98 kB / 1.247 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2892, allocations: 4 kB / 1.247 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.2892, allocations: 4 kB / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.2892, allocations: 3.938 kB / 1.247 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2892, allocations: 0 / 1.247 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.2895, allocations: 227.4 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.86e-05/0.2896, allocations: 89 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.2896, allocations: 0 / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.2898, allocations: 19.92 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.2898, allocations: 15.92 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.2898, allocations: 4 kB / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.795e-05/0.2899, allocations: 99.27 kB / 1.248 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2899, allocations: 0 / 1.248 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000322/0.2903, allocations: 43.92 kB / 1.248 GB, free: 3.164 MB / 0.9981 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0008762/0.2911, allocations: 0.8229 MB / 1.249 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002458/0.2914, allocations: 83.83 kB / 1.249 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2914, allocations: 256 / 1.249 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.2915, allocations: 47.98 kB / 1.249 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.2918, allocations: 20.25 kB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.2937, allocations: 1.599 MB / 1.25 GB, free: 488 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4588/0.7525, allocations: 0.6973 MB / 1.251 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.826e-05/0.7526, allocations: 10.56 kB / 1.251 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.524e-05/0.7526, allocations: 27.67 kB / 1.251 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of SimCode: time 6.72e-07/0.7527, allocations: 1.562 kB / 1.251 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.7766, allocations: 3.093 MB / 1.254 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.483, allocations: 6.188 kB / 1.254 GB, free: 14.11 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_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_Love1998Light1.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Love1998Light1_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.p,lig.on Variables in the result:time,lig.ill,lig.p,ill.amplitude,ill.f,ill.offset