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.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.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.001124/0.001124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.246/1.246, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.503/2.503, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001272, allocations: 61 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2642, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002704/0.267, allocations: 1.515 MB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.2683, allocations: 0.7715 MB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.079e-05/0.2684, allocations: 0 / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.96e-05/0.2684, allocations: 7.875 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.59e-05/0.2685, allocations: 19.84 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005875/0.2691, allocations: 127.6 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.2693, allocations: 99.64 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.436e-05/0.2694, allocations: 12 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.2695, allocations: 51.83 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.092e-05/0.2696, allocations: 39.83 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.2696, allocations: 8 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2698, allocations: 95.91 kB / 1.056 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.2698, allocations: 19.92 kB / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.72e-05/0.2699, allocations: 47.77 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.2701, allocations: 159.8 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2701, allocations: 4 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2701, allocations: 0 / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.2702, allocations: 0 / 1.056 GB, free: 5.289 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.0006963/0.2709, allocations: 497.5 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2709, allocations: 12.62 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.2709, allocations: 38.73 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.271, allocations: 8.844 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.2711, allocations: 180.2 kB / 1.057 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.2711, allocations: 4.375 kB / 1.057 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.2712, allocations: 8.375 kB / 1.057 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.2714, allocations: 85.7 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.2714, allocations: 0 / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.2714, allocations: 7.984 kB / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2714, allocations: 4 kB / 1.057 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.2716, allocations: 43.97 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005197/0.2721, allocations: 340.6 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.2723, allocations: 78.67 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.2724, allocations: 44.83 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2724, allocations: 0 / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.2727, allocations: 99.45 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.2727, allocations: 3.938 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004068/0.2731, allocations: 181.4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.2731, allocations: 51.41 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.538e-05/0.2732, allocations: 131.7 kB / 1.058 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.2733, allocations: 29.7 kB / 1.058 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.2733, allocations: 100.1 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.2734, allocations: 31.55 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.993e-05/0.2734, allocations: 33.7 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2735, allocations: 326.8 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.273e-05/0.2736, allocations: 27.98 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.776e-05/0.2737, allocations: 79.45 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.2739, allocations: 105 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2739, allocations: 0 / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000242/0.2741, allocations: 145.4 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2742, allocations: 4 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2742, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2742, allocations: 4 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2743, allocations: 23.92 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2743, allocations: 7.938 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.806e-05/0.2744, allocations: 11.92 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.2744, allocations: 4 kB / 1.058 GB, free: 2.305 MB / 0.8106 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.325e-05/0.2745, allocations: 129.9 kB / 1.059 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.2746, allocations: 7.906 kB / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003156/0.2749, allocations: 162.2 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2749, allocations: 4 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2749, allocations: 0 / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2749, allocations: 3.984 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.2755, allocations: 449.5 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2755, allocations: 0 / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.256e-05/0.2756, allocations: 19.98 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2756, allocations: 0 / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.2756, allocations: 0 / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.2756, allocations: 3.938 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2756, allocations: 4 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.2759, allocations: 235.4 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.74e-05/0.2759, allocations: 92.86 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.276, allocations: 3.984 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.2761, allocations: 19.88 kB / 1.06 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.2761, allocations: 7.984 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.2762, allocations: 7.984 kB / 1.06 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.305e-05/0.2762, allocations: 99.27 kB / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2762, allocations: 0 / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002942/0.2765, allocations: 47.98 kB / 1.06 GB, free: 0.9297 MB / 0.8106 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.0007376/0.2773, allocations: 0.8434 MB / 1.06 GB, free: 76 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.2775, allocations: 110.9 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2775, allocations: 0 / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.2777, allocations: 47.92 kB / 1.061 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.2779, allocations: 23.92 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.2795, allocations: 1.63 MB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2798, allocations: 0.7002 MB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.622e-05/0.2798, allocations: 8.438 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/0.2799, allocations: 35.42 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2799, allocations: 0 / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4603/0.7402, allocations: 3.26 MB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.797/9.537, allocations: 9.641 kB / 1.066 GB, free: 10.23 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