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.001213/0.001213, 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.00123/0.00123, allocations: 193.7 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.251/1.251, 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 9.1.3-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 390.3 MB / 0.6647 GB, free: 488 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 67.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5937/0.5951, allocations: 140.4 MB / 0.9497 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002262/0.5973, allocations: 1.513 MB / 0.9512 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.5984, allocations: 0.7539 MB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.697e-05/0.5985, allocations: 1.406 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.231e-05/0.5985, allocations: 7.875 kB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.5986, allocations: 18.3 kB / 0.952 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.5991, allocations: 131 kB / 0.9521 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.5992, allocations: 103.2 kB / 0.9522 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.309e-05/0.5993, allocations: 15.44 kB / 0.9522 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.713e-05/0.5994, allocations: 40.67 kB / 0.9522 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.367e-05/0.5995, allocations: 45.66 kB / 0.9523 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.5995, allocations: 12.47 kB / 0.9523 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.5997, allocations: 99.31 kB / 0.9524 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.5997, allocations: 23.62 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.485e-05/0.5998, allocations: 50.25 kB / 0.9525 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.6, allocations: 153.5 kB / 0.9526 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.6, allocations: 0 / 0.9526 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.72e-07/0.6, allocations: 5.156 kB / 0.9526 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.6, allocations: 0 / 0.9526 GB, free: 6.848 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.0005793/0.6006, allocations: 499.4 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.6007, allocations: 8.938 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.708e-05/0.6007, allocations: 32.06 kB / 0.9531 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.6007, allocations: 13 kB / 0.9531 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.783e-05/0.6008, allocations: 188.3 kB / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.6009, allocations: 2.594 kB / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.6009, allocations: 5.469 kB / 0.9533 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.6011, allocations: 91.14 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.6011, allocations: 0 / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.6011, allocations: 1.406 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.6011, allocations: 1.438 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.6012, allocations: 46.47 kB / 0.9535 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004375/0.6017, allocations: 341.1 kB / 0.9538 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.6019, allocations: 82.42 kB / 0.9539 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.152e-05/0.602, allocations: 42.34 kB / 0.9539 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.602, allocations: 1.094 kB / 0.9539 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.6022, allocations: 99.16 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.6022, allocations: 0 / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004006/0.6026, allocations: 185 kB / 0.9542 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.6026, allocations: 56.77 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.04e-05/0.6027, allocations: 134.9 kB / 0.9544 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.6028, allocations: 31.17 kB / 0.9544 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.6028, allocations: 90.73 kB / 0.9545 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.6028, allocations: 32.19 kB / 0.9545 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.6029, allocations: 31.89 kB / 0.9545 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/0.6029, allocations: 326.2 kB / 0.9548 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.39e-05/0.603, allocations: 27.33 kB / 0.9549 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.561e-05/0.6031, allocations: 76.78 kB / 0.9549 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.6033, allocations: 111.8 kB / 0.955 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.6033, allocations: 5.156 kB / 0.9551 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002227/0.6035, allocations: 139.5 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.6035, allocations: 7.469 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.6035, allocations: 1.188 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.6035, allocations: 2.812 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.6037, allocations: 15.23 kB / 0.9552 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6037, allocations: 6.281 kB / 0.9552 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.557e-05/0.6038, allocations: 14.61 kB / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.6038, allocations: 9.375 kB / 0.9552 GB, free: 4.387 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.838e-05/0.6039, allocations: 119.9 kB / 0.9554 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.6039, allocations: 7.719 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/0.6042, allocations: 167.8 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.6042, allocations: 2.156 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.6042, allocations: 0 / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6042, allocations: 0 / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.6047, allocations: 447.6 kB / 0.956 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6047, allocations: 3.938 kB / 0.956 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.722e-05/0.6048, allocations: 17.2 kB / 0.956 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.6048, allocations: 1.5 kB / 0.956 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.6048, allocations: 6.047 kB / 0.956 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.6048, allocations: 3.938 kB / 0.956 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6048, allocations: 144 / 0.956 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.6051, allocations: 247.7 kB / 0.9562 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.819e-05/0.6051, allocations: 83.27 kB / 0.9563 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.6051, allocations: 5.125 kB / 0.9563 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.6052, allocations: 13.61 kB / 0.9563 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.6053, allocations: 9.547 kB / 0.9563 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.6053, allocations: 8.062 kB / 0.9563 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.493e-05/0.6054, allocations: 99.48 kB / 0.9564 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6054, allocations: 4 kB / 0.9564 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003319/0.6057, allocations: 53.02 kB / 0.9565 GB, free: 3.316 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.0007243/0.6065, allocations: 0.831 MB / 0.9573 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002774/0.6068, allocations: 104 kB / 0.9574 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6068, allocations: 0 / 0.9574 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.6069, allocations: 54.38 kB / 0.9574 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.6072, allocations: 24.88 kB / 0.9575 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.6089, allocations: 1.634 MB / 0.9591 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.609, allocations: 0.7025 MB / 0.9598 GB, free: 300 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.957e-05/0.6091, allocations: 14.38 kB / 0.9598 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.72e-05/0.6091, allocations: 29.12 kB / 0.9598 GB, free: 268 kB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.6091, allocations: 1.812 kB / 0.9598 GB, free: 268 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.6282, allocations: 3.265 MB / 0.963 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.651, allocations: 7.094 kB / 0.963 GB, free: 14.55 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