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.001231/0.001231, 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.001228/0.001228, allocations: 193.1 kB / 16.25 MB, free: 6.637 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.217/1.217, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.274/2.274, allocations: 437 MB / 0.7101 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 71.88 kB / 0.8689 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6566/0.6581, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002421/0.6605, allocations: 1.581 MB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.6616, allocations: 0.748 MB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.752e-05/0.6617, allocations: 0 / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.421e-05/0.6617, allocations: 3.938 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.768e-05/0.6618, allocations: 19.86 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.6623, allocations: 111.8 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.6625, allocations: 95.7 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.309e-05/0.6625, allocations: 15.98 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.144e-05/0.6626, allocations: 39.84 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.453e-05/0.6627, allocations: 51.81 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.6627, allocations: 8 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.6629, allocations: 99.95 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.663, allocations: 19.81 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.278e-05/0.663, allocations: 47.72 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.6633, allocations: 157.9 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.6633, allocations: 0 / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6633, allocations: 0 / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.401e-05/0.6633, allocations: 0 / 1.02 GB, free: 15.69 MB / 0.7794 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.000707/0.664, allocations: 0.4977 MB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.6641, allocations: 8.031 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.831e-05/0.6641, allocations: 42.73 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.6641, allocations: 12.75 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.6643, allocations: 172.2 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.6643, allocations: 8.375 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.6643, allocations: 8.375 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.6645, allocations: 85.7 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.6645, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.6646, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.6646, allocations: 3.984 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.6647, allocations: 51.97 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005012/0.6652, allocations: 324.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.6655, allocations: 94.69 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.092e-05/0.6656, allocations: 40.83 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.6656, allocations: 4 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.6658, allocations: 95.27 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.6658, allocations: 4 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004115/0.6663, allocations: 177.4 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.6663, allocations: 59.41 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.867e-05/0.6664, allocations: 128.2 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.6665, allocations: 29.7 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.594e-05/0.6665, allocations: 96.12 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.6665, allocations: 23.66 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/0.6666, allocations: 33.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.6667, allocations: 326.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.74e-05/0.6668, allocations: 27.98 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.6669, allocations: 73.12 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.6671, allocations: 113 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.6671, allocations: 4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002639/0.6674, allocations: 137.3 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.6674, allocations: 9.344 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.6674, allocations: 4 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.6674, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.6676, allocations: 20.08 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.6676, allocations: 7.938 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.6677, allocations: 15.98 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.6677, allocations: 11.92 kB / 1.022 GB, free: 12.7 MB / 0.7794 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.904e-05/0.6678, allocations: 122.3 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.103e-05/0.6678, allocations: 7.906 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.6682, allocations: 162.2 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.6682, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.6682, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.6682, allocations: 3.984 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005794/0.6688, allocations: 450.3 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6688, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.682e-05/0.6689, allocations: 15.92 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6689, allocations: 0 / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.6689, allocations: 8 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.6689, allocations: 3.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6689, allocations: 4 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.6692, allocations: 238.9 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.6693, allocations: 85.02 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.6693, allocations: 7.984 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.6695, allocations: 8.078 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.6695, allocations: 23.97 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.6695, allocations: 7.984 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.006e-05/0.6696, allocations: 104.8 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.593e-06/0.6696, allocations: 0 / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003051/0.6699, allocations: 51.86 kB / 1.024 GB, free: 11.31 MB / 0.7794 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.0007678/0.6707, allocations: 0.8318 MB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002435/0.671, allocations: 101.2 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.671, allocations: 0 / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.6711, allocations: 52.11 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.6714, allocations: 27.92 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.6731, allocations: 1.652 MB / 1.026 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.6733, allocations: 0.7002 MB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.005e-05/0.6734, allocations: 4.438 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.6734, allocations: 31.42 kB / 1.027 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6735, allocations: 0 / 1.027 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.88/3.553, allocations: 3.136 MB / 1.03 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002587/3.554, allocations: 257.8 kB / 1.03 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/6.034, allocations: 0 / 1.03 GB, free: 4.523 MB / 0.7794 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) Reference file matches