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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0007887/0.0007887, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004663/0.004663, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.353/1.353, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.529/2.529, allocations: 462.6 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 11.47 kB / 0.9029 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2702, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.00177/0.272, allocations: 1.248 MB / 1.06 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.2733, allocations: 0.744 MB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.721e-05/0.2734, allocations: 4 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.2734, allocations: 0 / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.918e-05/0.2735, allocations: 23.84 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004257/0.2739, allocations: 103.8 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.2741, allocations: 91.7 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.42e-05/0.2742, allocations: 11.98 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.792e-05/0.2742, allocations: 43.84 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.989e-05/0.2743, allocations: 39.83 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.2744, allocations: 4 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.2745, allocations: 91.84 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.126e-05/0.2746, allocations: 27.89 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.337e-05/0.2746, allocations: 61.5 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.2748, allocations: 143.9 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2749, allocations: 8 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.863e-06/0.2749, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.2749, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 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.0007176/0.2756, allocations: 484.3 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.2757, allocations: 15.95 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.189e-05/0.2757, allocations: 38.75 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.2758, allocations: 8.844 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.2759, allocations: 180.2 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.276, allocations: 12.36 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.276, allocations: 8.375 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.2762, allocations: 81.77 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2762, allocations: 0 / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.2762, allocations: 4 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2762, allocations: 7.984 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.2764, allocations: 51.91 kB / 1.062 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005445/0.2769, allocations: 340.7 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.2772, allocations: 90.64 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2773, allocations: 44.84 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.2773, allocations: 0 / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.2775, allocations: 99.34 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.2775, allocations: 0 / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004422/0.278, allocations: 185.4 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.278, allocations: 63.38 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.2782, allocations: 136.5 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.2782, allocations: 25.7 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.2783, allocations: 92.14 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.2783, allocations: 27.64 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.2783, allocations: 21.77 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.2785, allocations: 326.7 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.063e-05/0.2786, allocations: 35.98 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.927e-05/0.2787, allocations: 69.12 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.2789, allocations: 109.1 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2789, allocations: 0 / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002594/0.2792, allocations: 137.4 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2792, allocations: 12.08 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2792, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2792, allocations: 7.938 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.2793, allocations: 19.98 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.2793, allocations: 7.938 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.993e-05/0.2794, allocations: 15.84 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.2795, allocations: 7.984 kB / 1.064 GB, free: 15.19 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.565e-05/0.2796, allocations: 135.5 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.589e-05/0.2796, allocations: 12.05 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003226/0.28, allocations: 166.3 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.28, allocations: 4 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.28, allocations: 0 / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.28, allocations: 0 / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006288/0.2806, allocations: 458.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2806, allocations: 0 / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.2807, allocations: 19.98 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2807, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.2807, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.2807, allocations: 11.88 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2807, allocations: 4 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.281, allocations: 239.4 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.2811, allocations: 88.95 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.2811, allocations: 7.984 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.2812, allocations: 15.94 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.2813, allocations: 15.92 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.2813, allocations: 7.984 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.403e-05/0.2814, allocations: 101.9 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2814, allocations: 0 / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000304/0.2817, allocations: 40 kB / 1.065 GB, free: 13.79 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.0008159/0.2825, allocations: 0.8419 MB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2828, allocations: 102.1 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2828, allocations: 0 / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.2829, allocations: 51.92 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.2832, allocations: 19.92 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.285, allocations: 1.679 MB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.2853, allocations: 0.6965 MB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.994e-05/0.2853, allocations: 12.42 kB / 1.069 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.2854, allocations: 31.42 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.2854, allocations: 3.938 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.002/1.288, allocations: 2.935 MB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002448/1.288, allocations: 265.1 kB / 1.072 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/3.135, allocations: 2.781 kB / 1.072 GB, free: 7.156 MB / 0.8262 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=50 --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