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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001079/0.001079, 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.001235/0.001235, allocations: 192.8 kB / 16.25 MB, free: 6.633 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: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.129/2.129, allocations: 390.3 MB / 0.6644 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5578/0.5591, allocations: 140.4 MB / 0.9492 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002292/0.5614, allocations: 1.58 MB / 0.9508 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009385/0.5624, allocations: 0.7372 MB / 0.9515 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.5624, allocations: 1.469 kB / 0.9515 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/0.5625, allocations: 7.922 kB / 0.9515 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.456e-05/0.5625, allocations: 13.38 kB / 0.9515 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.563, allocations: 120.2 kB / 0.9516 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.71e-05/0.5631, allocations: 99.22 kB / 0.9517 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.178e-05/0.5632, allocations: 15.2 kB / 0.9517 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.747e-05/0.5633, allocations: 52.06 kB / 0.9518 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.619e-05/0.5633, allocations: 45.84 kB / 0.9518 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.5633, allocations: 12.94 kB / 0.9519 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.5635, allocations: 95.22 kB / 0.9519 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.108e-05/0.5635, allocations: 19.17 kB / 0.952 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.2e-05/0.5636, allocations: 43.12 kB / 0.952 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.5638, allocations: 157.6 kB / 0.9522 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.5638, allocations: 1.281 kB / 0.9522 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5638, allocations: 0 / 0.9522 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.5638, allocations: 0 / 0.9522 GB, free: 6.895 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.0005635/0.5644, allocations: 0.4909 MB / 0.9526 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.5644, allocations: 10.12 kB / 0.9526 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.693e-05/0.5644, allocations: 36.38 kB / 0.9527 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.5645, allocations: 9.125 kB / 0.9527 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.108e-05/0.5646, allocations: 185.2 kB / 0.9529 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.5646, allocations: 11.31 kB / 0.9529 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.5646, allocations: 4.5 kB / 0.9529 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.5648, allocations: 80.14 kB / 0.953 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.5648, allocations: 0 / 0.953 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.5648, allocations: 5.094 kB / 0.953 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.5648, allocations: 4.844 kB / 0.953 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.565, allocations: 50.45 kB / 0.953 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.5654, allocations: 337.5 kB / 0.9533 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.5656, allocations: 82.83 kB / 0.9534 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.009e-05/0.5657, allocations: 42.89 kB / 0.9535 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.5657, allocations: 1.219 kB / 0.9535 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.5659, allocations: 102.1 kB / 0.9536 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.5659, allocations: 0 / 0.9536 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003794/0.5663, allocations: 184.1 kB / 0.9537 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.5663, allocations: 53.41 kB / 0.9538 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.656e-05/0.5664, allocations: 132.3 kB / 0.9539 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.5664, allocations: 27.86 kB / 0.9539 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.902e-05/0.5665, allocations: 95.22 kB / 0.954 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.5665, allocations: 27.08 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/0.5665, allocations: 36.83 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.313e-05/0.5666, allocations: 329.5 kB / 0.9544 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.272e-05/0.5667, allocations: 32.08 kB / 0.9544 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.345e-05/0.5667, allocations: 72.08 kB / 0.9545 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.5669, allocations: 108 kB / 0.9546 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5669, allocations: 0 / 0.9546 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002252/0.5671, allocations: 135.4 kB / 0.9547 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.5672, allocations: 6.281 kB / 0.9547 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.5672, allocations: 1.469 kB / 0.9547 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.5672, allocations: 1.531 kB / 0.9547 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.5673, allocations: 25.02 kB / 0.9548 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.5673, allocations: 9.109 kB / 0.9548 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.768e-05/0.5674, allocations: 11.47 kB / 0.9548 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.5674, allocations: 4.969 kB / 0.9548 GB, free: 4.434 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 6.759e-05/0.5675, allocations: 130.9 kB / 0.9549 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.5675, allocations: 9 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.5678, allocations: 163.3 kB / 0.9551 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.5678, allocations: 6.344 kB / 0.9551 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.5679, allocations: 0 / 0.9551 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.5679, allocations: 0 / 0.9551 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.5684, allocations: 447.3 kB / 0.9555 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.5684, allocations: 5.203 kB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.5684, allocations: 16.23 kB / 0.9555 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5685, allocations: 1.094 kB / 0.9555 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.5685, allocations: 2.062 kB / 0.9555 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.5685, allocations: 7.938 kB / 0.9555 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.5685, allocations: 0.9375 kB / 0.9555 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.5687, allocations: 243.4 kB / 0.9558 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.193e-05/0.5688, allocations: 83.58 kB / 0.9559 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.5688, allocations: 1.062 kB / 0.9559 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.5689, allocations: 16.98 kB / 0.9559 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.569, allocations: 13.52 kB / 0.9559 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.569, allocations: 8.047 kB / 0.9559 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.253e-05/0.569, allocations: 99.64 kB / 0.956 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.71e-07/0.569, allocations: 0 / 0.956 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002967/0.5693, allocations: 45.25 kB / 0.956 GB, free: 3.363 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.0006188/0.57, allocations: 0.8451 MB / 0.9569 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.5702, allocations: 105.8 kB / 0.957 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5702, allocations: 0 / 0.957 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.69e-05/0.5703, allocations: 52.58 kB / 0.957 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.5706, allocations: 25.73 kB / 0.957 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.5719, allocations: 1.646 MB / 0.9586 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.572, allocations: 0.7022 MB / 0.9593 GB, free: 320 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.141e-05/0.5721, allocations: 19.48 kB / 0.9593 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.5722, allocations: 32.86 kB / 0.9594 GB, free: 280 kB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.5722, allocations: 0.5312 kB / 0.9594 GB, free: 280 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3057/0.8779, allocations: 3.122 MB / 0.9624 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/0.8782, allocations: 254.9 kB / 0.9627 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.896/2.774, allocations: 0 / 0.9627 GB, free: 14.46 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