Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_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.007928/0.007928, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001728/0.001729, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.378/1.378, 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 9.1.3-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 62.97 kB / 0.9504 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2953, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002721/0.2981, allocations: 1.511 MB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2997, allocations: 0.7688 MB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.636e-05/0.2998, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.766e-05/0.2998, allocations: 7.875 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.474e-05/0.2999, allocations: 15.86 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.3006, allocations: 127.5 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.3008, allocations: 87.59 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.3009, allocations: 19.98 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.301, allocations: 39.89 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.441e-05/0.3011, allocations: 39.84 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.3011, allocations: 7.938 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.3013, allocations: 95.91 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.3014, allocations: 27.89 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.83e-05/0.3015, allocations: 31.8 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.3017, allocations: 158.4 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3018, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3018, allocations: 4 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3018, allocations: 0 / 1.09 GB, free: 15.09 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008241/0.3026, allocations: 475.3 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3027, allocations: 8.031 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.3027, allocations: 38.75 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.3028, allocations: 8.844 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.3029, allocations: 176.2 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.321e-05/0.303, allocations: 38.27 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.303, allocations: 12.36 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.3032, allocations: 81.53 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3033, allocations: 3.984 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3033, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3033, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.3035, allocations: 47.97 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.304, allocations: 332.5 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.3043, allocations: 70.55 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.3044, allocations: 36.83 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.3044, allocations: 4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.3047, allocations: 99.39 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.3047, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005544/0.3052, allocations: 169.5 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.3053, allocations: 51.41 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3054, allocations: 137.3 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.3055, allocations: 29.7 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/0.3055, allocations: 92.36 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.3055, allocations: 27.8 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.92e-05/0.3056, allocations: 37.7 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3057, allocations: 322.8 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.3059, allocations: 35.97 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.306, allocations: 74.25 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.3062, allocations: 109 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3063, allocations: 3.938 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003086/0.3066, allocations: 129.4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3066, allocations: 8 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3066, allocations: 3.938 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3066, allocations: 8.125 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.3068, allocations: 15.97 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3068, allocations: 4 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3069, allocations: 19.89 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.3069, allocations: 4 kB / 1.093 GB, free: 12.14 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,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.801e-05/0.307, allocations: 125.7 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.3071, allocations: 11.91 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.3071, allocations: 17.09 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3071, allocations: 3.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3071, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3071, allocations: 4 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006121/0.3077, allocations: 418.3 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3078, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.591e-05/0.3078, allocations: 11.98 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3078, allocations: 4 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.3079, allocations: 3.984 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.3079, allocations: 3.938 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3079, allocations: 7.938 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003392/0.3082, allocations: 223.3 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.3083, allocations: 81.02 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3083, allocations: 15.98 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.3084, allocations: 15.92 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.3085, allocations: 11.92 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.3085, allocations: 4 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.138e-05/0.3086, allocations: 99.27 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3086, allocations: 0 / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003384/0.309, allocations: 43.98 kB / 1.094 GB, free: 10.96 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 (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.0008929/0.3099, allocations: 0.8341 MB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003227/0.3102, allocations: 91.88 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3102, allocations: 0 / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.3103, allocations: 47.91 kB / 1.095 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.3107, allocations: 21.95 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.3126, allocations: 1.626 MB / 1.097 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3129, allocations: 0.6924 MB / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.173e-05/0.3129, allocations: 12.66 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.313, allocations: 23.44 kB / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.313, allocations: 192 / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.3319, allocations: 3.112 MB / 1.1 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.608/7.94, allocations: 9.5 kB / 1.1 GB, free: 4.457 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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