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.002212/0.002212, 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.002395/0.002395, allocations: 190.4 kB / 16.25 MB, free: 6.648 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.893/1.893, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.672/4.672, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 66.52 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3173, allocations: 157.4 MB / 1.052 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002981/0.3203, allocations: 1.597 MB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3217, allocations: 0.7517 MB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.633e-05/0.3218, allocations: 0 / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.945e-05/0.3218, allocations: 7.922 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.578e-05/0.3219, allocations: 15.92 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.3225, allocations: 115.8 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.3227, allocations: 99.64 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.3228, allocations: 11.98 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.3229, allocations: 43.91 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.119e-05/0.323, allocations: 43.81 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.3231, allocations: 8 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002022/0.3233, allocations: 99.84 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.744e-05/0.3233, allocations: 19.92 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.669e-05/0.3234, allocations: 43.8 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.3237, allocations: 163.8 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3237, allocations: 0 / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3237, allocations: 7.938 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.3237, allocations: 0 / 1.055 GB, free: 5.637 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.0007824/0.3245, allocations: 496.2 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3246, allocations: 16.5 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.3246, allocations: 34.75 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.3247, allocations: 8.844 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3248, allocations: 176.2 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.3248, allocations: 12.38 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.3249, allocations: 8.359 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.3251, allocations: 85.7 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.3251, allocations: 0 / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/0.3251, allocations: 4 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3251, allocations: 0 / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001511/0.3253, allocations: 47.95 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005697/0.3259, allocations: 336.7 kB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.3261, allocations: 82.7 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.403e-05/0.3262, allocations: 36.84 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.3262, allocations: 3.984 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003269/0.3266, allocations: 103.3 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.974e-06/0.3266, allocations: 0 / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005847/0.3272, allocations: 181.4 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.3273, allocations: 55.41 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.3274, allocations: 132.1 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.3274, allocations: 29.7 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.3275, allocations: 92.14 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.327e-05/0.3276, allocations: 35.55 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.3277, allocations: 29.7 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3278, allocations: 326.8 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.328, allocations: 27.98 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.3282, allocations: 69.12 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.3285, allocations: 109 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3285, allocations: 0 / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005156/0.329, allocations: 137.7 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3291, allocations: 8 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3291, allocations: 7.938 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-05/0.3291, allocations: 3.984 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3292, allocations: 15.98 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.3293, allocations: 7.984 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.3294, allocations: 11.92 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3294, allocations: 15.94 kB / 1.058 GB, free: 2.656 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 0.0001581/0.3296, allocations: 129.7 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.3296, allocations: 7.906 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003756/0.33, allocations: 166.2 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.33, allocations: 0 / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.33, allocations: 3.938 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.33, allocations: 0 / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006622/0.3307, allocations: 454.4 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3307, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.563e-05/0.3308, allocations: 11.94 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3308, allocations: 0 / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.3308, allocations: 3.984 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3308, allocations: 7.938 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3309, allocations: 0 / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003772/0.3312, allocations: 242.5 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.3313, allocations: 92.86 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.3313, allocations: 8 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.3315, allocations: 11.92 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.3315, allocations: 7.984 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.3316, allocations: 8 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.622e-05/0.3316, allocations: 101.6 kB / 1.059 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3316, allocations: 4 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003524/0.332, allocations: 44 kB / 1.059 GB, free: 1.277 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.0009737/0.333, allocations: 0.8377 MB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003038/0.3333, allocations: 111.8 kB / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3333, allocations: 0 / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.3335, allocations: 47.98 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.3338, allocations: 25.41 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.3356, allocations: 1.654 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.3359, allocations: 0.6924 MB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.857e-05/0.336, allocations: 16.42 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.847e-05/0.336, allocations: 35.42 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.336, allocations: 0 / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3738/0.7099, allocations: 3.133 MB / 1.066 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000402/0.7104, allocations: 267.6 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.003/4.713, allocations: 2.125 kB / 1.066 GB, free: 10.44 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