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.007681/0.007681, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.00183/0.00183, allocations: 201.8 kB / 16.68 MB, free: 5.926 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.395/1.395, 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 11.0.1-master/package.mo): time 2.622/2.622, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 56.12 kB / 1.054 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8584/0.8603, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.00271/0.863, allocations: 1.528 MB / 1.209 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.8644, allocations: 0.744 MB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.601e-05/0.8645, allocations: 0 / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.266e-05/0.8646, allocations: 11.88 kB / 1.209 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.755e-05/0.8647, allocations: 23.78 kB / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005325/0.8652, allocations: 119.6 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001439/0.8654, allocations: 91.75 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.8655, allocations: 4 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.8656, allocations: 51.77 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.812e-05/0.8657, allocations: 39.84 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.8657, allocations: 8 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.8659, allocations: 99.84 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.866, allocations: 23.91 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.13e-05/0.866, allocations: 35.84 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002492/0.8663, allocations: 149.9 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.8663, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8663, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.8663, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 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.0007846/0.8671, allocations: 482.4 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.8671, allocations: 12.03 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.8672, allocations: 34.75 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.8672, allocations: 16.78 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.8674, allocations: 180.2 kB / 1.211 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.8675, allocations: 34.27 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.8675, allocations: 4.375 kB / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.8677, allocations: 89.52 kB / 1.211 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.8677, allocations: 3.984 kB / 1.211 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.8678, allocations: 3.938 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.8678, allocations: 0 / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.868, allocations: 51.95 kB / 1.211 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005487/0.8685, allocations: 324.7 kB / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.8688, allocations: 70.58 kB / 1.211 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.8689, allocations: 44.83 kB / 1.211 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.8689, allocations: 0 / 1.211 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.8692, allocations: 95.36 kB / 1.211 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.8692, allocations: 0 / 1.211 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0005202/0.8697, allocations: 165.5 kB / 1.212 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.8698, allocations: 55.41 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.8699, allocations: 138 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.8699, allocations: 33.64 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.87, allocations: 96.27 kB / 1.212 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.87, allocations: 19.81 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.8701, allocations: 29.7 kB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.8702, allocations: 331.1 kB / 1.212 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.8703, allocations: 23.98 kB / 1.212 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.8705, allocations: 77.12 kB / 1.212 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.8707, allocations: 101 kB / 1.212 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.8708, allocations: 3.938 kB / 1.213 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003315/0.8711, allocations: 141.3 kB / 1.213 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.8711, allocations: 4 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.8712, allocations: 4 kB / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.8712, allocations: 0 / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.8713, allocations: 19.92 kB / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.8713, allocations: 4 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.8714, allocations: 20.05 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.8715, allocations: 11.98 kB / 1.213 GB, free: 7.676 MB / 0.9356 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.0001077/0.8716, allocations: 127.3 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.163e-05/0.8716, allocations: 7.906 kB / 1.213 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.8716, allocations: 12.72 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.8717, allocations: 0 / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.8717, allocations: 0 / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.8717, allocations: 96 / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006669/0.8723, allocations: 438.4 kB / 1.213 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8724, allocations: 3.938 kB / 1.213 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.632e-05/0.8724, allocations: 7.984 kB / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/0.8725, allocations: 4 kB / 1.213 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.8725, allocations: 0 / 1.213 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.8725, allocations: 3.938 kB / 1.213 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.8725, allocations: 4 kB / 1.213 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.8729, allocations: 231.3 kB / 1.213 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.199e-05/0.8729, allocations: 88.95 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.8729, allocations: 4 kB / 1.214 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.8731, allocations: 15.92 kB / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.8731, allocations: 7.984 kB / 1.214 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.8732, allocations: 15.98 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.334e-05/0.8732, allocations: 97.7 kB / 1.214 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8732, allocations: 0 / 1.214 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003402/0.8736, allocations: 43.94 kB / 1.214 GB, free: 6.48 MB / 0.9356 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.0008834/0.8745, allocations: 0.8205 MB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003179/0.8748, allocations: 87.88 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8748, allocations: 0 / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.875, allocations: 56.16 kB / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.8753, allocations: 22.34 kB / 1.215 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.8772, allocations: 1.626 MB / 1.216 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.8775, allocations: 0.7001 MB / 1.217 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.567e-05/0.8776, allocations: 8.672 kB / 1.217 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.371e-05/0.8776, allocations: 31.36 kB / 1.217 GB, free: 2.984 MB / 0.9356 GB Notification: Performance of SimCode: time 4.7e-07/0.8776, allocations: 0 / 1.217 GB, free: 2.984 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01991/0.8976, allocations: 3.162 MB / 1.22 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.708, allocations: 8 kB / 1.22 GB, free: 15.94 MB / 0.9512 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