Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.00663/0.00663, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001709/0.001709, allocations: 195.3 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.506/2.506, allocations: 482.6 MB / 0.7551 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 66.7 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3753, allocations: 162.3 MB / 1.242 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002498/0.3779, allocations: 1.546 MB / 1.243 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.3791, allocations: 0.7454 MB / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.775e-05/0.3791, allocations: 0 / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.947e-05/0.3791, allocations: 7.922 kB / 1.244 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.636e-05/0.3792, allocations: 19.8 kB / 1.244 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.3797, allocations: 127.6 kB / 1.244 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.3799, allocations: 99.62 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.901e-05/0.38, allocations: 23.97 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.733e-05/0.38, allocations: 39.84 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.635e-05/0.3801, allocations: 51.81 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.3802, allocations: 8 kB / 1.244 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.3803, allocations: 99.84 kB / 1.245 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.3804, allocations: 19.92 kB / 1.245 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.146e-05/0.3804, allocations: 39.78 kB / 1.245 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.3807, allocations: 163.7 kB / 1.245 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.3807, allocations: 4 kB / 1.245 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3807, allocations: 4 kB / 1.245 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.3807, allocations: 0 / 1.245 GB, free: 5.949 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006404/0.3813, allocations: 496 kB / 1.245 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.691e-05/0.3814, allocations: 12.03 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.3814, allocations: 38.73 kB / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.002e-05/0.3814, allocations: 12.84 kB / 1.245 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.3816, allocations: 176.3 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.3816, allocations: 4.375 kB / 1.245 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.3816, allocations: 12.31 kB / 1.245 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.3818, allocations: 85.7 kB / 1.246 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-06/0.3818, allocations: 0 / 1.246 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3818, allocations: 4 kB / 1.246 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.3818, allocations: 7.984 kB / 1.246 GB, free: 5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.382, allocations: 43.97 kB / 1.246 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004716/0.3824, allocations: 340.6 kB / 1.246 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.3826, allocations: 78.67 kB / 1.246 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.028e-05/0.3827, allocations: 44.83 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.3828, allocations: 3.984 kB / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.383, allocations: 99.36 kB / 1.246 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.383, allocations: 0 / 1.246 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004/0.3834, allocations: 177.5 kB / 1.246 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3834, allocations: 55.41 kB / 1.246 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.3835, allocations: 130.1 kB / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.3836, allocations: 29.7 kB / 1.246 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.3836, allocations: 96.08 kB / 1.247 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.3837, allocations: 27.8 kB / 1.247 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.428e-05/0.3837, allocations: 33.7 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3839, allocations: 330.8 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-05/0.384, allocations: 27.98 kB / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3841, allocations: 67.23 kB / 1.247 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.3843, allocations: 117 kB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3843, allocations: 0 / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002474/0.3845, allocations: 137.5 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.3846, allocations: 12.09 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.3846, allocations: 0 / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3846, allocations: 4 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3847, allocations: 19.98 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3847, allocations: 3.938 kB / 1.247 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.3848, allocations: 11.95 kB / 1.247 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.3848, allocations: 7.984 kB / 1.247 GB, free: 2.969 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001051/0.3849, allocations: 129.7 kB / 1.247 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.385, allocations: 11.95 kB / 1.247 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003414/0.3853, allocations: 161.4 kB / 1.248 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3853, allocations: 7.938 kB / 1.248 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3853, allocations: 3.938 kB / 1.248 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3853, allocations: 3.984 kB / 1.248 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005858/0.3859, allocations: 446.3 kB / 1.248 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3859, allocations: 0 / 1.248 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.896e-05/0.386, allocations: 15.98 kB / 1.248 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.386, allocations: 4 kB / 1.248 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.386, allocations: 4 kB / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.386, allocations: 3.938 kB / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.3861, allocations: 0 / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.3864, allocations: 239.5 kB / 1.248 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.3865, allocations: 89.02 kB / 1.248 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.3865, allocations: 11.92 kB / 1.248 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.3866, allocations: 8 kB / 1.248 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3867, allocations: 15.92 kB / 1.248 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.3867, allocations: 8.125 kB / 1.248 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.359e-05/0.3868, allocations: 103.2 kB / 1.249 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3868, allocations: 0 / 1.249 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002746/0.387, allocations: 39.94 kB / 1.249 GB, free: 1.586 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0008757/0.3879, allocations: 0.8475 MB / 1.249 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002301/0.3882, allocations: 95.58 kB / 1.25 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3882, allocations: 8 kB / 1.25 GB, free: 0.6328 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.3883, allocations: 47.98 kB / 1.25 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.3886, allocations: 15.98 kB / 1.25 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.3903, allocations: 1.646 MB / 1.251 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.3906, allocations: 0.7002 MB / 1.252 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.283e-05/0.3907, allocations: 12.36 kB / 1.252 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.3907, allocations: 31.42 kB / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3908, allocations: 0 / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.301/2.691, allocations: 3.32 MB / 1.255 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/17.63, allocations: 13.5 kB / 1.255 GB, free: 10.85 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches