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.009306/0.009306, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.003084/0.003084, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.442/1.442, 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.424/2.424, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 66.92 kB / 0.9504 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.291, allocations: 140.4 MB / 1.087 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002935/0.2939, allocations: 1.503 MB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.2954, allocations: 0.7609 MB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.701e-05/0.2955, allocations: 0 / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.539e-05/0.2956, allocations: 11.86 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.2957, allocations: 15.88 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006626/0.2964, allocations: 131.5 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.2966, allocations: 91.69 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2967, allocations: 15.97 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2968, allocations: 35.86 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.531e-05/0.2969, allocations: 47.81 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.297, allocations: 8 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002438/0.2972, allocations: 99.84 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.521e-05/0.2973, allocations: 19.92 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.809e-05/0.2973, allocations: 35.8 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.2976, allocations: 162.4 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2976, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2977, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.2977, allocations: 0 / 1.09 GB, free: 15.15 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.0008926/0.2986, allocations: 471.3 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.2986, allocations: 20.02 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.2987, allocations: 34.75 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.2987, allocations: 8.844 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.2989, allocations: 186.7 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.178e-05/0.299, allocations: 38.25 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.299, allocations: 4.375 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.2993, allocations: 81.52 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2993, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2993, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.2993, allocations: 12 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.2996, allocations: 47.95 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006379/0.3002, allocations: 320.6 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.3005, allocations: 74.53 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.3006, allocations: 32.84 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.3006, allocations: 8 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.301, allocations: 95.38 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 2.134e-06/0.301, allocations: 0 / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005533/0.3016, allocations: 177.4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3017, allocations: 59.55 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.3018, allocations: 130.1 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.3018, allocations: 25.7 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.3019, allocations: 92.38 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.3019, allocations: 27.64 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.302, allocations: 29.7 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3021, allocations: 330.8 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3023, allocations: 31.98 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.3024, allocations: 69.12 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.3027, allocations: 105.1 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3027, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003159/0.303, allocations: 141.5 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.303, allocations: 9.656 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.303, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.3031, allocations: 4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3032, allocations: 19.92 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3032, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.3033, allocations: 19.89 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.3033, allocations: 4 kB / 1.093 GB, free: 12.21 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 0.0001261/0.3035, allocations: 137.7 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.3035, allocations: 8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.619e-05/0.3035, allocations: 16.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3036, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3036, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3036, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006391/0.3042, allocations: 426.3 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3042, allocations: 4 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.319e-05/0.3043, allocations: 7.984 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3043, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.3043, allocations: 4.469 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3044, allocations: 3.938 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3044, allocations: 0 / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.3047, allocations: 239.2 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.557e-05/0.3048, allocations: 85.02 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.3048, allocations: 0 / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.305, allocations: 19.92 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.305, allocations: 15.92 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.3051, allocations: 3.984 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001792/0.3052, allocations: 105.8 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3052, allocations: 0 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000344/0.3056, allocations: 44 kB / 1.094 GB, free: 11.01 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.0009371/0.3065, allocations: 0.8162 MB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.3069, allocations: 87.88 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3069, allocations: 3.938 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.307, allocations: 47.92 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.3073, allocations: 20.17 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.3094, allocations: 1.625 MB / 1.097 GB, free: 8.289 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.3097, allocations: 0.6963 MB / 1.097 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.71e-05/0.3098, allocations: 12.84 kB / 1.097 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.482e-05/0.3098, allocations: 31.36 kB / 1.097 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of SimCode: time 6.21e-07/0.3098, allocations: 0 / 1.097 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.3275, allocations: 3.158 MB / 1.1 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.393, allocations: 5.875 kB / 1.1 GB, free: 4.469 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,occ.period,occ.startTime,occ.width,occ.y,time