Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.007356/0.007356, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002145/0.002145, allocations: 192.8 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.801/2.801, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 66.75 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2728, allocations: 162.2 MB / 1.241 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002607/0.2754, allocations: 1.521 MB / 1.243 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2767, allocations: 0.7571 MB / 1.244 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.671e-05/0.2768, allocations: 0 / 1.244 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.2768, allocations: 7.922 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.16e-05/0.2769, allocations: 19.8 kB / 1.244 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.2774, allocations: 123.6 kB / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.2776, allocations: 87.7 kB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.2776, allocations: 23.97 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.548e-05/0.2777, allocations: 47.72 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.771e-05/0.2778, allocations: 39.83 kB / 1.244 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.2779, allocations: 8 kB / 1.244 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.2781, allocations: 95.84 kB / 1.244 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.099e-05/0.2781, allocations: 15.98 kB / 1.244 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/0.2782, allocations: 39.8 kB / 1.244 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.2784, allocations: 159.7 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2784, allocations: 4 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2784, allocations: 0 / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.2784, allocations: 4 kB / 1.244 GB, free: 6.348 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007675/0.2792, allocations: 474.3 kB / 1.245 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2793, allocations: 8.031 kB / 1.245 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.2793, allocations: 42.73 kB / 1.245 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.2794, allocations: 8.891 kB / 1.245 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.2795, allocations: 176.2 kB / 1.245 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/0.2796, allocations: 38.25 kB / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.2796, allocations: 12.38 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.2798, allocations: 77.58 kB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.2799, allocations: 0 / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2799, allocations: 0 / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2799, allocations: 4 kB / 1.245 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.2801, allocations: 51.89 kB / 1.245 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005268/0.2806, allocations: 316.7 kB / 1.245 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.2809, allocations: 74.53 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.281, allocations: 40.92 kB / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.281, allocations: 3.984 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.2813, allocations: 107.4 kB / 1.246 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2813, allocations: 0 / 1.246 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0005089/0.2818, allocations: 169.5 kB / 1.246 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.2819, allocations: 55.39 kB / 1.246 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.282, allocations: 144.3 kB / 1.246 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.282, allocations: 25.7 kB / 1.246 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.033e-05/0.2821, allocations: 96.33 kB / 1.246 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.2821, allocations: 23.84 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.2822, allocations: 29.7 kB / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.2823, allocations: 322.8 kB / 1.246 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2825, allocations: 31.97 kB / 1.247 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2826, allocations: 73.06 kB / 1.247 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/0.2829, allocations: 105.1 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2829, allocations: 0 / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000324/0.2832, allocations: 137.5 kB / 1.247 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.2832, allocations: 8 kB / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2832, allocations: 0 / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2832, allocations: 4 kB / 1.247 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2834, allocations: 24.11 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.2834, allocations: 7.922 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.2835, allocations: 15.92 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.2835, allocations: 8 kB / 1.247 GB, free: 3.395 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,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.2836, allocations: 122.3 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.2837, allocations: 15.89 kB / 1.247 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.2837, allocations: 8.719 kB / 1.247 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.2837, allocations: 8 kB / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.2837, allocations: 0 / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2837, allocations: 0 / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.2844, allocations: 422.3 kB / 1.247 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2844, allocations: 3.938 kB / 1.247 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.642e-05/0.2845, allocations: 15.98 kB / 1.247 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2845, allocations: 0 / 1.247 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.2845, allocations: 8.469 kB / 1.247 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.2846, allocations: 3.938 kB / 1.247 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2846, allocations: 3.938 kB / 1.247 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003761/0.2849, allocations: 231.3 kB / 1.248 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.208e-05/0.285, allocations: 88.95 kB / 1.248 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.285, allocations: 4 kB / 1.248 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.2852, allocations: 15.92 kB / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.2852, allocations: 11.98 kB / 1.248 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.2853, allocations: 4.094 kB / 1.248 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.795e-05/0.2853, allocations: 109.6 kB / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2854, allocations: 0 / 1.248 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002983/0.2857, allocations: 35.94 kB / 1.248 GB, free: 2.203 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 (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 (10): * Single equations (assignments): 7 * 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.0009051/0.2866, allocations: 0.8199 MB / 1.249 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.2869, allocations: 91.89 kB / 1.249 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.2869, allocations: 0 / 1.249 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.287, allocations: 47.97 kB / 1.249 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.2873, allocations: 17.48 kB / 1.249 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.2893, allocations: 1.631 MB / 1.25 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.2897, allocations: 0.6924 MB / 1.251 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.111e-05/0.2897, allocations: 8.656 kB / 1.251 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.2898, allocations: 31.42 kB / 1.251 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of SimCode: time 2.184e-06/0.2898, allocations: 0 / 1.251 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.3132, allocations: 3.12 MB / 1.254 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.691/8.004, allocations: 15.05 kB / 1.254 GB, free: 11.71 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_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_Hunt1979Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_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,ill.amplitude,ill.f,ill.offset