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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001472/0.001471, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00163/0.00163, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.367/1.367, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.566/2.566, allocations: 469.4 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 64.36 kB / 0.9088 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3376, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002207/0.3398, allocations: 0.7159 MB / 1.065 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002012/0.3418, allocations: 1.532 MB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.3419, allocations: 0 / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.61e-05/0.342, allocations: 7.875 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.3422, allocations: 23.84 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004958/0.3427, allocations: 155.5 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.3429, allocations: 115.8 kB / 1.067 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.343, allocations: 19.97 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.3432, allocations: 51.78 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.3433, allocations: 51.81 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.3433, allocations: 12 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.3435, allocations: 79.95 kB / 1.067 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.097e-05/0.3436, allocations: 27.91 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.496e-05/0.3437, allocations: 47.78 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.344, allocations: 203.8 kB / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.344, allocations: 0 / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.483e-06/0.344, allocations: 0 / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.344, allocations: 0 / 1.067 GB, free: 11.97 MB / 0.8419 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.0007259/0.3447, allocations: 415.2 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3448, allocations: 8.031 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.3448, allocations: 12.78 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.345, allocations: 188.2 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.3451, allocations: 34.27 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.3451, allocations: 8.375 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.3453, allocations: 104.3 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3453, allocations: 0 / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.3453, allocations: 0 / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3453, allocations: 4 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.3454, allocations: 55.84 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006554/0.3461, allocations: 0.5204 MB / 1.068 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.3466, allocations: 135.7 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.026e-05/0.3467, allocations: 46.66 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.3467, allocations: 4 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.3469, allocations: 113.9 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3469, allocations: 0 / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0003187/0.3472, allocations: 141.5 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.3473, allocations: 110.9 kB / 1.069 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.3474, allocations: 125.8 kB / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.3474, allocations: 25.7 kB / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.3475, allocations: 100.4 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.3475, allocations: 31.55 kB / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.3476, allocations: 33.7 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.3477, allocations: 318.8 kB / 1.07 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.674e-05/0.3478, allocations: 39.97 kB / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.458e-05/0.3479, allocations: 42.09 kB / 1.07 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.3481, allocations: 76.78 kB / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3481, allocations: 0 / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002532/0.3484, allocations: 136 kB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3484, allocations: 4 kB / 1.07 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3484, allocations: 3.938 kB / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.3484, allocations: 0 / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3485, allocations: 23.92 kB / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3485, allocations: 0 / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.3486, allocations: 15.94 kB / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.3487, allocations: 12.11 kB / 1.07 GB, free: 8.832 MB / 0.8419 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 9.512e-05/0.3488, allocations: 127.7 kB / 1.07 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.3488, allocations: 7.906 kB / 1.07 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.349, allocations: 117.9 kB / 1.07 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.349, allocations: 4 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3491, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3491, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.3493, allocations: 217.8 kB / 1.07 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3493, allocations: 3.938 kB / 1.07 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.3494, allocations: 27.92 kB / 1.07 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3494, allocations: 4 kB / 1.07 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3494, allocations: 4 kB / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3494, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3494, allocations: 4 kB / 1.07 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.3497, allocations: 174.6 kB / 1.071 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/0.3497, allocations: 104.9 kB / 1.071 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.3498, allocations: 0 / 1.071 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.3499, allocations: 11.98 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/0.3499, allocations: 19.86 kB / 1.071 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3499, allocations: 12 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.854e-05/0.35, allocations: 95.27 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.35, allocations: 0 / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002942/0.3503, allocations: 63.83 kB / 1.071 GB, free: 7.746 MB / 0.8419 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.0002402/0.3505, allocations: 151.7 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002369/0.3508, allocations: 99.89 kB / 1.071 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3508, allocations: 0 / 1.071 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.772e-05/0.3509, allocations: 51.92 kB / 1.071 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.3511, allocations: 21.48 kB / 1.071 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000489/0.3516, allocations: 269.7 kB / 1.071 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.3519, allocations: 0.6963 MB / 1.072 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.3519, allocations: 23.42 kB / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.3519, allocations: 0 / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of Templates: time 0.003619/0.3556, allocations: 1.812 MB / 1.074 GB, free: 4.574 MB / 0.8419 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 -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