Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayCon.y",fileNamePrefix="Buildings_10_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_10_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.005225/0.005225, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001273/0.001273, allocations: 192.2 kB / 16.79 MB, free: 5.809 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.612/2.612, allocations: 437 MB / 0.7106 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 59.91 kB / 0.8692 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7472/0.7487, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002423/0.7512, allocations: 0.7921 MB / 1.018 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002275/0.7535, allocations: 1.54 MB / 1.02 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.355e-05/0.7536, allocations: 0 / 1.02 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.7537, allocations: 7.938 kB / 1.02 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.7539, allocations: 15.86 kB / 1.02 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.7544, allocations: 123.7 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.7546, allocations: 115.7 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.7548, allocations: 19.97 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.7549, allocations: 43.86 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.7551, allocations: 47.81 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.7551, allocations: 4 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.7553, allocations: 79.88 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.663e-05/0.7554, allocations: 23.91 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.7555, allocations: 35.8 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.7558, allocations: 157.7 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7558, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.81e-07/0.7558, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.7558, allocations: 0 / 1.02 GB, free: 15.79 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008194/0.7566, allocations: 419.2 kB / 1.021 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.7567, allocations: 8.031 kB / 1.021 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.7568, allocations: 8.844 kB / 1.021 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.7569, allocations: 184.2 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-05/0.757, allocations: 34.27 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.7571, allocations: 12.38 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.7573, allocations: 100.3 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.7573, allocations: 0 / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.7573, allocations: 0 / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.7573, allocations: 7.938 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.7575, allocations: 43.97 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.7582, allocations: 0.5243 MB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.7587, allocations: 139.7 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.308e-05/0.7588, allocations: 42.66 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.7588, allocations: 4 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.7591, allocations: 117.9 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.7591, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003679/0.7595, allocations: 141.5 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.7595, allocations: 106.8 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.7597, allocations: 137.6 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.7597, allocations: 25.7 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.927e-05/0.7598, allocations: 96.45 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.807e-05/0.7598, allocations: 39.64 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.715e-05/0.7599, allocations: 37.61 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.76, allocations: 322.8 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.7601, allocations: 35.98 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.7602, allocations: 38.09 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.7604, allocations: 72.84 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7604, allocations: 4 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002654/0.7607, allocations: 131.3 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.7607, allocations: 4 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.7607, allocations: 0 / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.7607, allocations: 3.938 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.7609, allocations: 23.92 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.7609, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.929e-05/0.761, allocations: 11.84 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.761, allocations: 15.92 kB / 1.023 GB, free: 12.65 MB / 0.7794 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.00011/0.7611, allocations: 122.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.7612, allocations: 7.906 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.7614, allocations: 118 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.7614, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.7615, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7615, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.7617, allocations: 229.4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.7617, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.7618, allocations: 24.16 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.7618, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.7618, allocations: 8 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.7618, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.7618, allocations: 4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.7621, allocations: 182.5 kB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.7622, allocations: 97 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.7622, allocations: 4 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.7623, allocations: 11.98 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.7624, allocations: 15.92 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.7624, allocations: 4 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.937e-05/0.7625, allocations: 99.27 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7625, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003092/0.7628, allocations: 63.92 kB / 1.024 GB, free: 11.57 MB / 0.7794 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.0002798/0.7631, allocations: 155.1 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002655/0.7634, allocations: 100.7 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7634, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.7635, allocations: 55.91 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.7637, allocations: 9.375 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005493/0.7643, allocations: 297.5 kB / 1.025 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.7646, allocations: 0.7005 MB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.7647, allocations: 23.42 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of SimCode: time 3.81e-07/0.7647, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of Templates: time 0.004108/0.7688, allocations: 1.816 MB / 1.027 GB, free: 8.367 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.makefile (rm -f Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & ./Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches