Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Gunay2016Light,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_11_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.001716/0.001716, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001845/0.001845, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.554/2.554, allocations: 469.8 MB / 0.7421 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 64.39 kB / 0.9082 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2509, allocations: 159.2 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002554/0.2535, allocations: 1.585 MB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.2546, allocations: 0.744 MB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.321e-05/0.2546, allocations: 0 / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.857e-05/0.2547, allocations: 3.938 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.122e-05/0.2548, allocations: 19.86 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.2552, allocations: 111.8 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.2553, allocations: 99.69 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.609e-05/0.2554, allocations: 15.98 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.435e-05/0.2555, allocations: 35.86 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.277e-05/0.2556, allocations: 47.81 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2556, allocations: 8 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.2558, allocations: 99.91 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.2558, allocations: 23.91 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.093e-05/0.2559, allocations: 43.78 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.2561, allocations: 167.7 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.2561, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2561, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.2561, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 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.0006853/0.2568, allocations: 0.4885 MB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.2568, allocations: 8.031 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.648e-05/0.2569, allocations: 38.75 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.2569, allocations: 8.844 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.2571, allocations: 176.2 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.2571, allocations: 8.375 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.2571, allocations: 4.375 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.2573, allocations: 85.64 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.2573, allocations: 4 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.2573, allocations: 4 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.2573, allocations: 4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.2575, allocations: 47.97 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.258, allocations: 340.6 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.2582, allocations: 82.67 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.773e-05/0.2583, allocations: 36.84 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.2583, allocations: 4 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.2585, allocations: 99.38 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.2585, allocations: 3.938 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004084/0.259, allocations: 181.5 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.259, allocations: 55.41 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.2591, allocations: 132.1 kB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2591, allocations: 25.7 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.2592, allocations: 96.05 kB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.2592, allocations: 31.62 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.2593, allocations: 37.7 kB / 1.068 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2595, allocations: 322.8 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.2595, allocations: 31.98 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.2596, allocations: 81 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.2598, allocations: 105.1 kB / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2598, allocations: 0 / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002378/0.2601, allocations: 137.4 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.2601, allocations: 4 kB / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2601, allocations: 4 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2601, allocations: 0 / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2602, allocations: 19.98 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2603, allocations: 8.031 kB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.586e-05/0.2604, allocations: 23.83 kB / 1.069 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.2604, allocations: 4 kB / 1.069 GB, free: 8.527 MB / 0.8262 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 9.469e-05/0.2605, allocations: 125.8 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2605, allocations: 7.906 kB / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003236/0.2608, allocations: 167.9 kB / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2608, allocations: 0 / 1.069 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2608, allocations: 4 kB / 1.069 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2609, allocations: 0 / 1.069 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00057/0.2614, allocations: 442.4 kB / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2614, allocations: 0 / 1.07 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.2615, allocations: 15.94 kB / 1.07 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2615, allocations: 0 / 1.07 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2615, allocations: 7.984 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2616, allocations: 7.938 kB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2616, allocations: 0 / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.2619, allocations: 243.9 kB / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.355e-05/0.2619, allocations: 89.09 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.262, allocations: 0 / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.2621, allocations: 23.84 kB / 1.07 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.2621, allocations: 7.984 kB / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.2621, allocations: 8 kB / 1.07 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.668e-05/0.2622, allocations: 109.5 kB / 1.07 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.2622, allocations: 0 / 1.07 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002764/0.2625, allocations: 43.94 kB / 1.07 GB, free: 7.148 MB / 0.8262 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.0008074/0.2633, allocations: 0.8276 MB / 1.071 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002378/0.2636, allocations: 95.83 kB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2636, allocations: 4 kB / 1.071 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.2637, allocations: 61.03 kB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.264, allocations: 28.48 kB / 1.071 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.2657, allocations: 1.645 MB / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.266, allocations: 0.7002 MB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.583e-05/0.266, allocations: 8.422 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.13e-05/0.2661, allocations: 35.42 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2661, allocations: 0 / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5732/0.8394, allocations: 3.129 MB / 1.077 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003842/0.8398, allocations: 255.2 kB / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.78, allocations: 0 / 1.077 GB, free: 376 kB / 0.8262 GB (rm -f Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches