Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.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.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",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.007413/0.007413, allocations: 101 kB / 15.73 MB, free: 6.055 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.002269/0.002269, allocations: 196.6 kB / 16.68 MB, free: 5.969 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.37/2.37, allocations: 390.3 MB / 0.6648 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8699/0.8715, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002046/0.8736, allocations: 0.7251 MB / 1.088 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.8755, allocations: 1.532 MB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.976e-05/0.8756, allocations: 1.219 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.258e-05/0.8756, allocations: 4.547 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.8758, allocations: 21.56 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.8762, allocations: 145.8 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.8764, allocations: 128.3 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.8765, allocations: 27.7 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.8766, allocations: 47.34 kB / 1.09 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.714e-05/0.8767, allocations: 47.27 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.8768, allocations: 11.12 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.877, allocations: 104.6 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.826e-05/0.877, allocations: 28.64 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.665e-05/0.8771, allocations: 45.19 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.8774, allocations: 191.4 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.8774, allocations: 4 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8774, allocations: 5 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.8775, allocations: 0 / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006225/0.8781, allocations: 421.6 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.8781, allocations: 9.719 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.277e-05/0.8782, allocations: 39.17 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.8782, allocations: 8.969 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.989e-05/0.8783, allocations: 186.7 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.962e-05/0.8784, allocations: 36 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.8784, allocations: 9.797 kB / 1.091 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.8786, allocations: 98.34 kB / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.8786, allocations: 0 / 1.091 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.8787, allocations: 5.859 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.8787, allocations: 1.438 kB / 1.091 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.8788, allocations: 49.05 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005775/0.8794, allocations: 0.5173 MB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004621/0.8798, allocations: 136.3 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.528e-05/0.8799, allocations: 45.94 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.88, allocations: 1.469 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.8802, allocations: 119.4 kB / 1.092 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.8802, allocations: 0.7188 kB / 1.092 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003355/0.8805, allocations: 140.5 kB / 1.092 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.8806, allocations: 105.5 kB / 1.092 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.828e-05/0.8807, allocations: 133.1 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.8807, allocations: 35.23 kB / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.93e-05/0.8808, allocations: 97.02 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.8808, allocations: 30.84 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.8808, allocations: 33.41 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.971e-05/0.8809, allocations: 323 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.517e-05/0.881, allocations: 35.05 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.514e-05/0.8811, allocations: 36.72 kB / 1.093 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.8813, allocations: 85.69 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.8813, allocations: 0.8125 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002353/0.8815, allocations: 134.6 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.8816, allocations: 5.844 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.8816, allocations: 0 / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.8816, allocations: 1.562 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.8817, allocations: 23.05 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.8817, allocations: 0.7188 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.8818, allocations: 14.14 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.8818, allocations: 9.422 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (dayCon.not1.y,dayCon.sunRiseSet.nextSunSet,$PRE.dayCon.sunRiseSet.nextSunSet,dayCon.sunRiseSet.nextSunRise,$PRE.dayCon.sunRiseSet.nextSunRise,$whenCondition1,$whenCondition2) * 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 7.51e-05/0.8819, allocations: 121.3 kB / 1.093 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.8819, allocations: 8.562 kB / 1.093 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.8822, allocations: 116.6 kB / 1.093 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.8822, allocations: 2.891 kB / 1.093 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.8822, allocations: 5.438 kB / 1.093 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.8822, allocations: 6.125 kB / 1.093 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.8824, allocations: 214 kB / 1.094 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.8824, allocations: 0.5625 kB / 1.094 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.855e-05/0.8825, allocations: 26.66 kB / 1.094 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.8825, allocations: 0.7188 kB / 1.094 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.8825, allocations: 10.88 kB / 1.094 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.8825, allocations: 2.188 kB / 1.094 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.8825, allocations: 1.375 kB / 1.094 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.8828, allocations: 174.9 kB / 1.094 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.8829, allocations: 100.2 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.8829, allocations: 7.984 kB / 1.094 GB, free: 168 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.586e-05/0.883, allocations: 10.45 kB / 1.094 GB, free: 164 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.883, allocations: 20.59 kB / 1.094 GB, free: 152 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.883, allocations: 6.094 kB / 1.094 GB, free: 152 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.872e-05/0.8831, allocations: 98.88 kB / 1.094 GB, free: 68 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8831, allocations: 0 / 1.094 GB, free: 68 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002802/0.8834, allocations: 61.7 kB / 1.094 GB, free: 48 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet,dayCon.not1.y) * Number of discrete states: 2 (dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006965/0.8841, allocations: 0.7602 MB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002661/0.8844, allocations: 104.7 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.8844, allocations: 0 / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.8845, allocations: 52.41 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.8847, allocations: 18.17 kB / 1.095 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.8865, allocations: 1.537 MB / 1.097 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.8868, allocations: 0.7024 MB / 1.097 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.583e-05/0.8868, allocations: 15.62 kB / 1.097 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.691e-05/0.8869, allocations: 39.42 kB / 1.097 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of SimCode: time 1.393e-06/0.8869, allocations: 0 / 1.097 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.9112, allocations: 2.967 MB / 1.1 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.591, allocations: 5.531 kB / 1.1 GB, free: 12.79 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,dayCon.y Variables in the result:dayCon.lat,dayCon.lon,dayCon.timZon,dayCon.y,time