Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_10_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.006395/0.006396, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.001452/0.001452, allocations: 196 kB / 16.68 MB, free: 5.934 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.62/2.62, allocations: 437.1 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.312, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003279/0.3154, allocations: 1.527 MB / 1.168 GB, free: 5.789 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001784/0.3172, allocations: 0.7517 MB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3173, allocations: 4 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.402e-05/0.3174, allocations: 7.875 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.3176, allocations: 19.84 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008672/0.3185, allocations: 131.5 kB / 1.169 GB, free: 4.871 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.3187, allocations: 95.7 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3188, allocations: 15.98 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.3189, allocations: 55.77 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.132e-05/0.319, allocations: 35.84 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.3191, allocations: 8 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.3193, allocations: 99.89 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.273e-05/0.3193, allocations: 23.91 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.5e-05/0.3194, allocations: 43.8 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.3197, allocations: 158.4 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3197, allocations: 4 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3197, allocations: 0 / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.615e-06/0.3197, allocations: 0 / 1.169 GB, free: 4.344 MB / 0.92 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.0007392/0.3204, allocations: 0.4932 MB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3205, allocations: 8.031 kB / 1.17 GB, free: 3.777 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.3205, allocations: 34.75 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.3206, allocations: 8.844 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3207, allocations: 180.2 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.3208, allocations: 12.31 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.3208, allocations: 4.375 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.321, allocations: 85.77 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.321, allocations: 4 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.321, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3211, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.3212, allocations: 51.95 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.3218, allocations: 332.6 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.3221, allocations: 82.67 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.3222, allocations: 40.78 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.3223, allocations: 3.984 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00029/0.3226, allocations: 103.4 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.3226, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004865/0.3231, allocations: 181.5 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.3231, allocations: 55.41 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3233, allocations: 130.1 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3233, allocations: 29.7 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.727e-05/0.3233, allocations: 99.98 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.3234, allocations: 23.7 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7e-05/0.3234, allocations: 29.7 kB / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3236, allocations: 334.7 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.268e-05/0.3237, allocations: 27.98 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.3238, allocations: 71.8 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.324, allocations: 109.1 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.324, allocations: 0 / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002684/0.3243, allocations: 137.4 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3243, allocations: 4 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3243, allocations: 4 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3243, allocations: 0 / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3244, allocations: 24.02 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3245, allocations: 4 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.3246, allocations: 23.83 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.3246, allocations: 8 kB / 1.172 GB, free: 1.359 MB / 0.92 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.947e-05/0.3247, allocations: 125.7 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.3247, allocations: 7.906 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.3251, allocations: 170.1 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3251, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3251, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3251, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006223/0.3257, allocations: 462.1 kB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3258, allocations: 0 / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.332e-05/0.3258, allocations: 8 kB / 1.172 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3258, allocations: 0 / 1.172 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.3259, allocations: 7.984 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3259, allocations: 7.938 kB / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3259, allocations: 0 / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3262, allocations: 243.3 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.3263, allocations: 81.02 kB / 1.173 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.3263, allocations: 7.938 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3264, allocations: 11.98 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.3265, allocations: 11.98 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.3265, allocations: 11.94 kB / 1.173 GB, free: 128 kB / 0.92 GB Notification: Performance of sorting global known variables: time 7.982e-05/0.3266, allocations: 103.2 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3266, allocations: 0 / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003383/0.327, allocations: 40.05 kB / 1.173 GB, free: 15.98 MB / 0.9356 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.0008672/0.3278, allocations: 0.8358 MB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002624/0.3281, allocations: 95.89 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3281, allocations: 0 / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3282, allocations: 59.91 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.3286, allocations: 20.17 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.3304, allocations: 1.649 MB / 1.175 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3307, allocations: 0.6963 MB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.288e-05/0.3308, allocations: 16.36 kB / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.176e-05/0.3309, allocations: 35.42 kB / 1.176 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of SimCode: time 4.31e-07/0.3309, allocations: 0 / 1.176 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.3497, allocations: 3.317 MB / 1.179 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.3, allocations: 10.05 kB / 1.179 GB, free: 9.234 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time