Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_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.001141/0.001141, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001134/0.001133, allocations: 192.7 kB / 16.13 MB, free: 6.691 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.222/1.222, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.149/2.149, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 67.89 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5577/0.5588, allocations: 140.4 MB / 0.949 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002095/0.561, allocations: 1.584 MB / 0.9506 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009257/0.5619, allocations: 0.7596 MB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.5619, allocations: 0 / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.562, allocations: 3.938 kB / 0.9513 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.949e-05/0.5621, allocations: 10.45 kB / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.5624, allocations: 110.8 kB / 0.9514 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.818e-05/0.5625, allocations: 94.58 kB / 0.9515 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.171e-05/0.5626, allocations: 23.06 kB / 0.9516 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.484e-05/0.5627, allocations: 40.67 kB / 0.9516 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.709e-05/0.5627, allocations: 40.83 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.5628, allocations: 5.375 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.5629, allocations: 94.62 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.5629, allocations: 23.41 kB / 0.9518 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.563, allocations: 34.92 kB / 0.9518 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.5632, allocations: 152.2 kB / 0.9519 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.5632, allocations: 9.281 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.62e-07/0.5632, allocations: 0 / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.086e-06/0.5632, allocations: 0 / 0.9519 GB, free: 6.934 MB / 0.7169 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.0005473/0.5637, allocations: 490.2 kB / 0.9524 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.5638, allocations: 10.5 kB / 0.9524 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.007e-05/0.5638, allocations: 36.09 kB / 0.9525 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.5639, allocations: 9.781 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.042e-05/0.5639, allocations: 187.3 kB / 0.9526 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.564, allocations: 11.25 kB / 0.9527 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.564, allocations: 11.97 kB / 0.9527 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.5642, allocations: 83.55 kB / 0.9527 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.5642, allocations: 5.344 kB / 0.9527 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.5642, allocations: 4 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.5642, allocations: 1.312 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.5643, allocations: 49.8 kB / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.5648, allocations: 330.3 kB / 0.9531 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.565, allocations: 86.2 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.5651, allocations: 38.69 kB / 0.9532 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.5651, allocations: 5.484 kB / 0.9532 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.5653, allocations: 102.5 kB / 0.9533 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.5653, allocations: 0 / 0.9533 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003686/0.5656, allocations: 184.2 kB / 0.9535 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.5657, allocations: 54.09 kB / 0.9536 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.311e-05/0.5657, allocations: 130 kB / 0.9537 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.5658, allocations: 27.73 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.845e-05/0.5658, allocations: 99.34 kB / 0.9538 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.5658, allocations: 23.59 kB / 0.9538 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.5659, allocations: 31.27 kB / 0.9539 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.766e-05/0.5659, allocations: 329.6 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.607e-05/0.566, allocations: 28.89 kB / 0.9542 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-05/0.5661, allocations: 70.83 kB / 0.9543 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.5663, allocations: 108.2 kB / 0.9544 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5663, allocations: 1.031 kB / 0.9544 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002275/0.5665, allocations: 142.8 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.5665, allocations: 5.5 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.5665, allocations: 2.344 kB / 0.9545 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.5665, allocations: 6.391 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5666, allocations: 15.34 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.5667, allocations: 10.52 kB / 0.9546 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.5668, allocations: 6.781 kB / 0.9546 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.5668, allocations: 4.438 kB / 0.9546 GB, free: 4.484 MB / 0.7169 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 5.768e-05/0.5668, allocations: 132.6 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.5669, allocations: 7.906 kB / 0.9547 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.5672, allocations: 163.5 kB / 0.9549 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.5672, allocations: 2.125 kB / 0.9549 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.5672, allocations: 3.938 kB / 0.9549 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.5672, allocations: 0 / 0.9549 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004577/0.5676, allocations: 455.5 kB / 0.9553 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5677, allocations: 1.156 kB / 0.9553 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.06e-05/0.5677, allocations: 20.77 kB / 0.9553 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.5677, allocations: 0 / 0.9553 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.5678, allocations: 6.469 kB / 0.9553 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.5678, allocations: 3.938 kB / 0.9553 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5678, allocations: 5.156 kB / 0.9553 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.568, allocations: 241.6 kB / 0.9556 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.5681, allocations: 84.77 kB / 0.9556 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.5681, allocations: 1.125 kB / 0.9556 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.5682, allocations: 16.42 kB / 0.9557 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.5682, allocations: 8.891 kB / 0.9557 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.5683, allocations: 8.297 kB / 0.9557 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.897e-05/0.5683, allocations: 105.8 kB / 0.9558 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5683, allocations: 0 / 0.9558 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000283/0.5686, allocations: 45.03 kB / 0.9558 GB, free: 3.406 MB / 0.7169 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.0005383/0.5691, allocations: 0.836 MB / 0.9566 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002115/0.5694, allocations: 99.64 kB / 0.9567 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.5694, allocations: 3.938 kB / 0.9567 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.5695, allocations: 53.45 kB / 0.9568 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.5698, allocations: 24.16 kB / 0.9568 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.571, allocations: 1.639 MB / 0.9584 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.141e-05/0.5711, allocations: 0.694 MB / 0.9591 GB, free: 388 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.785e-05/0.5711, allocations: 14.58 kB / 0.9591 GB, free: 380 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.5712, allocations: 33.83 kB / 0.9591 GB, free: 352 kB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.5712, allocations: 3.938 kB / 0.9591 GB, free: 348 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5108/1.082, allocations: 3.026 MB / 0.9621 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002118/1.082, allocations: 263.4 kB / 0.9623 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.763, allocations: 5.188 kB / 0.9623 GB, free: 14.57 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches