Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled") translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 103.3 kB / 16.35 MB, free: 5.879 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.001761/0.001762, allocations: 199 kB / 17.3 MB, free: 5.52 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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.534/2.534, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.47 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3543, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002285/0.3566, allocations: 0.7268 MB / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0021/0.3588, allocations: 1.536 MB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.244e-05/0.3588, allocations: 0 / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.63e-05/0.3589, allocations: 7.875 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.3591, allocations: 19.86 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.3595, allocations: 155.5 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.3597, allocations: 119.7 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.3598, allocations: 19.98 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.3599, allocations: 43.86 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.3601, allocations: 55.75 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.3601, allocations: 12 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.3603, allocations: 103.9 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.821e-05/0.3603, allocations: 23.92 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.853e-05/0.3604, allocations: 47.78 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.3607, allocations: 191.5 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3607, allocations: 4 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3607, allocations: 0 / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3607, allocations: 0 / 1.03 GB, free: 14.99 MB / 0.8106 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.0008097/0.3615, allocations: 427.1 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3616, allocations: 12.03 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.3617, allocations: 8.844 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.3618, allocations: 180.2 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-05/0.3619, allocations: 42.23 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.3619, allocations: 4.375 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.3621, allocations: 100.4 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3622, allocations: 0 / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.3622, allocations: 4 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3622, allocations: 0 / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.3623, allocations: 47.91 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.363, allocations: 0.5243 MB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.3635, allocations: 139.7 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.837e-05/0.3636, allocations: 38.58 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.3636, allocations: 8.078 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.3638, allocations: 117.8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.3639, allocations: 0 / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003357/0.3642, allocations: 137.5 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.3643, allocations: 110.8 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3644, allocations: 125.9 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.3644, allocations: 37.7 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/0.3645, allocations: 88.33 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.3645, allocations: 35.61 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.3646, allocations: 37.7 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3647, allocations: 322.8 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.586e-05/0.3648, allocations: 35.98 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.324e-05/0.3649, allocations: 35.98 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.3651, allocations: 88.09 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3651, allocations: 256 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002405/0.3653, allocations: 129.5 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3654, allocations: 4 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3654, allocations: 4 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3654, allocations: 4 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.3655, allocations: 19.92 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.3656, allocations: 4 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.65e-05/0.3657, allocations: 15.92 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.3657, allocations: 7.938 kB / 1.032 GB, free: 11.84 MB / 0.8106 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 0.0001095/0.3658, allocations: 125.8 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.3658, allocations: 7.906 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.3661, allocations: 118.1 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.3661, allocations: 4 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3661, allocations: 0 / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3661, allocations: 4 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.3663, allocations: 217.4 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3664, allocations: 4 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.735e-05/0.3665, allocations: 23.92 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3665, allocations: 4 kB / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.3665, allocations: 0 / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3665, allocations: 4 kB / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3665, allocations: 0 / 1.033 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.3668, allocations: 178.6 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.098e-05/0.3669, allocations: 104.9 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.3669, allocations: 8 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.777e-05/0.367, allocations: 4 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.79e-05/0.3671, allocations: 19.86 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.3671, allocations: 4 kB / 1.033 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.029e-05/0.3672, allocations: 103.1 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3672, allocations: 0 / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002927/0.3675, allocations: 67.83 kB / 1.033 GB, free: 10.76 MB / 0.8106 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.0002615/0.3677, allocations: 155.1 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.368, allocations: 95.89 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.368, allocations: 3.938 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3681, allocations: 59.98 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.3684, allocations: 9.125 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/0.3689, allocations: 244.7 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.3693, allocations: 0.6963 MB / 1.035 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.825e-05/0.3693, allocations: 20.67 kB / 1.035 GB, free: 9.418 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.052e-05/0.3694, allocations: 23.42 kB / 1.035 GB, free: 9.395 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3694, allocations: 0 / 1.035 GB, free: 9.395 MB / 0.8106 GB Notification: Performance of Templates: time 0.004792/0.3742, allocations: 1.718 MB / 1.036 GB, free: 7.684 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & ./Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches