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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.005951/0.005951, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001247/0.001247, allocations: 195.8 kB / 16.67 MB, free: 5.965 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.711/2.711, allocations: 469.4 MB / 0.7421 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 59.91 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2909, allocations: 159.1 MB / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002629/0.2935, allocations: 1.522 MB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2949, allocations: 0.7634 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.295, allocations: 4 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.295, allocations: 7.875 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.822e-05/0.2951, allocations: 11.86 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005707/0.2957, allocations: 127.6 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.2958, allocations: 83.77 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.191e-05/0.2959, allocations: 19.98 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.296, allocations: 43.78 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.517e-05/0.2961, allocations: 39.81 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.2962, allocations: 8 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.2964, allocations: 95.86 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.2964, allocations: 23.91 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.035e-05/0.2964, allocations: 35.8 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.2967, allocations: 151.5 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2967, allocations: 4 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2967, allocations: 0 / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2967, allocations: 0 / 1.223 GB, free: 11.76 MB / 0.9825 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.0007639/0.2975, allocations: 486.2 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2976, allocations: 8.031 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.2976, allocations: 34.73 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.2977, allocations: 20.83 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.2978, allocations: 180.3 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.095e-05/0.2979, allocations: 34.25 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.2979, allocations: 8.375 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.2981, allocations: 81.52 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.2981, allocations: 3.938 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2982, allocations: 4 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2982, allocations: 0 / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.2984, allocations: 51.95 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.2989, allocations: 316.7 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.2991, allocations: 74.56 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2992, allocations: 40.84 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2993, allocations: 0 / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/0.2995, allocations: 99.34 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.2996, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004897/0.3, allocations: 165.5 kB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.3001, allocations: 59.41 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3002, allocations: 132.9 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3003, allocations: 33.69 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.3003, allocations: 96.33 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.152e-05/0.3004, allocations: 27.94 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.3004, allocations: 33.7 kB / 1.224 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3005, allocations: 322.8 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3007, allocations: 35.97 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.3008, allocations: 69.12 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.3011, allocations: 101.1 kB / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3011, allocations: 4 kB / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003005/0.3014, allocations: 129.5 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3014, allocations: 13.36 kB / 1.225 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3014, allocations: 4.094 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3014, allocations: 3.984 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3016, allocations: 27.92 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.3016, allocations: 4.375 kB / 1.225 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.3017, allocations: 15.94 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3017, allocations: 4 kB / 1.225 GB, free: 8.801 MB / 0.9825 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 9.742e-05/0.3018, allocations: 134.2 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.3019, allocations: 15.83 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.3019, allocations: 16.7 kB / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3019, allocations: 0 / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3019, allocations: 0 / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.3019, allocations: 0 / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.3025, allocations: 418.4 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3025, allocations: 0 / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.776e-05/0.3026, allocations: 15.98 kB / 1.226 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3026, allocations: 0 / 1.226 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3027, allocations: 7.984 kB / 1.226 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3027, allocations: 3.938 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3027, allocations: 0 / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.303, allocations: 223.3 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.568e-05/0.3031, allocations: 97.05 kB / 1.226 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.3031, allocations: 0 / 1.226 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.3032, allocations: 15.92 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3033, allocations: 11.98 kB / 1.226 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.3033, allocations: 4 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.06e-05/0.3034, allocations: 99.27 kB / 1.226 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3034, allocations: 0 / 1.226 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003335/0.3037, allocations: 47.86 kB / 1.226 GB, free: 7.605 MB / 0.9825 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.000843/0.3046, allocations: 0.8177 MB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000294/0.3049, allocations: 91.89 kB / 1.227 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3049, allocations: 0 / 1.227 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.3051, allocations: 47.91 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.3054, allocations: 23.33 kB / 1.227 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.3072, allocations: 1.641 MB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.3075, allocations: 0.6962 MB / 1.229 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.607e-05/0.3075, allocations: 12.66 kB / 1.229 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6e-05/0.3076, allocations: 31.42 kB / 1.23 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3076, allocations: 0 / 1.23 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3279, allocations: 3.12 MB / 1.233 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.782, allocations: 0 / 1.233 GB, free: 1.105 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 50 --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