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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00535/0.00535, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001179/0.001179, allocations: 191.8 kB / 16.67 MB, free: 5.461 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.782/2.782, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 60.12 kB / 1.054 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2981, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002615/0.3008, allocations: 1.524 MB / 1.209 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.3025, allocations: 0.7637 MB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.624e-05/0.3026, allocations: 0 / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.434e-05/0.3027, allocations: 7.922 kB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.3028, allocations: 19.81 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007655/0.3036, allocations: 123.6 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.3038, allocations: 87.75 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.3039, allocations: 15.94 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.3041, allocations: 39.84 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.3042, allocations: 47.81 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.3042, allocations: 8 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002787/0.3045, allocations: 95.84 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.887e-05/0.3046, allocations: 15.92 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.3047, allocations: 39.8 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.305, allocations: 155.9 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.305, allocations: 0 / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.553e-06/0.305, allocations: 0 / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.305, allocations: 4 kB / 1.21 GB, free: 7.25 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.001003/0.306, allocations: 474.5 kB / 1.211 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3061, allocations: 16.56 kB / 1.211 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.557e-05/0.3062, allocations: 38.73 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.3062, allocations: 8.844 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.3064, allocations: 184.2 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.3065, allocations: 42.25 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.3066, allocations: 4.375 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.3069, allocations: 77.58 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3069, allocations: 0 / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.3069, allocations: 0 / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.307, allocations: 4 kB / 1.211 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.3073, allocations: 51.89 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.308, allocations: 320.7 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.3083, allocations: 70.53 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3085, allocations: 32.84 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.3085, allocations: 4.094 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003793/0.3089, allocations: 107.3 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 2.525e-06/0.3089, allocations: 0 / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007038/0.3097, allocations: 165.5 kB / 1.212 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.3097, allocations: 59.39 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.3099, allocations: 140.5 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.3099, allocations: 25.7 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/0.31, allocations: 100.8 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.3101, allocations: 27.64 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.758e-05/0.3102, allocations: 29.7 kB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3103, allocations: 322.8 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.3105, allocations: 35.91 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.3107, allocations: 77.06 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.3111, allocations: 101.1 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3111, allocations: 0 / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000443/0.3116, allocations: 145.4 kB / 1.213 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3116, allocations: 4 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3116, allocations: 0 / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.3116, allocations: 4 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.3118, allocations: 24.05 kB / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3118, allocations: 0 / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.312, allocations: 11.98 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.312, allocations: 11.94 kB / 1.213 GB, free: 4.293 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.0001264/0.3122, allocations: 121.8 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.3122, allocations: 7.906 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.731e-05/0.3123, allocations: 12.7 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3123, allocations: 8 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3123, allocations: 0 / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3123, allocations: 0 / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008744/0.3132, allocations: 434.1 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.3132, allocations: 7.984 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.665e-05/0.3133, allocations: 4 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3133, allocations: 0 / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3133, allocations: 15.98 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3134, allocations: 3.938 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3134, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.3139, allocations: 223.3 kB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.3139, allocations: 89 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.314, allocations: 0 / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.3142, allocations: 20.11 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.3143, allocations: 11.98 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.3143, allocations: 3.938 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.042e-05/0.3144, allocations: 103.3 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3144, allocations: 0 / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005515/0.315, allocations: 43.98 kB / 1.214 GB, free: 3.102 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.001006/0.316, allocations: 0.8202 MB / 1.215 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002934/0.3163, allocations: 91.89 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3163, allocations: 0 / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.3165, allocations: 59.92 kB / 1.215 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.3168, allocations: 20.89 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.3187, allocations: 1.626 MB / 1.216 GB, free: 376 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.319, allocations: 0.6924 MB / 1.217 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.02e-05/0.319, allocations: 12.66 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.3191, allocations: 31.42 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3191, allocations: 0 / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.3386, allocations: 3.162 MB / 1.22 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.281, allocations: 6.438 kB / 1.22 GB, free: 12.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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