Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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: translateModel(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|skyBri.skyBri",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|skyBri.skyBri",fileNamePrefix="Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001686/0.001686, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.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.424/2.424, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 71.88 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.719/0.7203, allocations: 140.4 MB / 0.9489 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.005714/0.726, allocations: 4.436 MB / 0.9532 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1803/0.9064, allocations: 148.3 MB / 1.098 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008945/0.9073, allocations: 15.94 kB / 1.098 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005325/0.9079, allocations: 134.9 kB / 1.098 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.9094, allocations: 438.1 kB / 1.099 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001731/0.9111, allocations: 0.7307 MB / 1.099 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001078/0.9122, allocations: 1.25 MB / 1.101 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008459/0.9131, allocations: 0.6832 MB / 1.101 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004972/0.9136, allocations: 446.2 kB / 1.102 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004877/0.9141, allocations: 0.4976 MB / 1.102 GB, free: 4.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.9142, allocations: 68 kB / 1.102 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007484/0.9149, allocations: 411.6 kB / 1.103 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002554/0.9152, allocations: 259 kB / 1.103 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.9156, allocations: 0.532 MB / 1.103 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.917, allocations: 1.62 MB / 1.105 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.917, allocations: 0 / 1.105 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.21e-07/0.917, allocations: 0 / 1.105 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.9171, allocations: 4 kB / 1.105 GB, free: 1.727 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002453/0.9195, allocations: 1.477 MB / 1.106 GB, free: 208 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.9196, allocations: 11.97 kB / 1.106 GB, free: 196 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001629/0.9212, allocations: 307.1 kB / 1.107 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009961/0.9222, allocations: 0.7656 MB / 1.107 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.103e-05/0.9223, allocations: 73.94 kB / 1.108 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.9224, allocations: 96 kB / 1.108 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.9243, allocations: 1.07 MB / 1.109 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.9243, allocations: 0 / 1.109 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.978e-05/0.9244, allocations: 40 kB / 1.109 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.9244, allocations: 24 kB / 1.109 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002218/0.9267, allocations: 1.272 MB / 1.11 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004482/0.9312, allocations: 2.715 MB / 1.113 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002564/0.9337, allocations: 1.02 MB / 1.114 GB, free: 8.629 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008238/0.9346, allocations: 362.6 kB / 1.114 GB, free: 8.273 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.828e-05/0.9347, allocations: 32.59 kB / 1.114 GB, free: 8.242 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.9359, allocations: 0.5567 MB / 1.115 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=84): time 4.258e-06/0.9359, allocations: 0 / 1.115 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of matching and sorting (n=84): time 0.003901/0.9398, allocations: 1.38 MB / 1.116 GB, free: 6.262 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.9399, allocations: 192.9 kB / 1.116 GB, free: 6.031 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009044/0.9409, allocations: 0.6372 MB / 1.117 GB, free: 5.391 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.9409, allocations: 41.7 kB / 1.117 GB, free: 5.344 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004037/0.9414, allocations: 428.2 kB / 1.117 GB, free: 4.918 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.9416, allocations: 272.1 kB / 1.117 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002766/0.9419, allocations: 174.5 kB / 1.118 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002063/0.9421, allocations: 394.6 kB / 1.118 GB, free: 4.078 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007515/0.9429, allocations: 321.8 kB / 1.118 GB, free: 3.762 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008348/0.9437, allocations: 419 kB / 1.119 GB, free: 3.34 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.9453, allocations: 0.7139 MB / 1.119 GB, free: 2.613 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.9453, allocations: 0 / 1.119 GB, free: 2.613 MB / 0.8731 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002401/0.9477, allocations: 0.9659 MB / 1.12 GB, free: 1.637 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.9477, allocations: 4 kB / 1.12 GB, free: 1.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.9477, allocations: 0 / 1.12 GB, free: 1.633 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.9483, allocations: 88.8 kB / 1.12 GB, free: 1.543 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008542/0.9492, allocations: 183.8 kB / 1.121 GB, free: 1.363 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.9513, allocations: 1.516 MB / 1.122 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009176/0.9522, allocations: 115.3 kB / 1.122 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.9523, allocations: 39.97 kB / 1.122 GB, free: 15.55 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000505/0.9528, allocations: 275.3 kB / 1.122 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.953, allocations: 82.97 kB / 1.122 GB, free: 15.19 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/0.9559, allocations: 1.214 MB / 1.124 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.9559, allocations: 8 kB / 1.124 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.9559, allocations: 0 / 1.124 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.9559, allocations: 7.984 kB / 1.124 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.9598, allocations: 2.145 MB / 1.126 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.9598, allocations: 0 / 1.126 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007862/0.9606, allocations: 171.8 kB / 1.126 GB, free: 11.58 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005398/0.9611, allocations: 80.78 kB / 1.126 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-05/0.9612, allocations: 31.97 kB / 1.126 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/0.9633, allocations: 1.548 MB / 1.128 GB, free: 9.777 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.9633, allocations: 0 / 1.128 GB, free: 9.777 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/0.9659, allocations: 1.113 MB / 1.129 GB, free: 8.645 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.9663, allocations: 283.7 kB / 1.129 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.9664, allocations: 23.94 kB / 1.129 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007692/0.9672, allocations: 90.02 kB / 1.129 GB, free: 8.238 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.9674, allocations: 80.88 kB / 1.129 GB, free: 8.156 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-05/0.9675, allocations: 35.97 kB / 1.129 GB, free: 8.121 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007576/0.9683, allocations: 463 kB / 1.13 GB, free: 7.676 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9683, allocations: 4 kB / 1.13 GB, free: 7.672 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001289/0.9696, allocations: 327.2 kB / 1.13 GB, free: 7.352 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00171/0.9713, allocations: 0.6014 MB / 1.13 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002467/0.9738, allocations: 0.9484 MB / 1.131 GB, free: 5.965 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.9738, allocations: 4 kB / 1.131 GB, free: 5.961 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.9751, allocations: 0.5744 MB / 1.132 GB, free: 5.375 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.9765, allocations: 274.4 kB / 1.132 GB, free: 5.113 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.9809, allocations: 2.361 MB / 1.135 GB, free: 2.727 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000596/0.9815, allocations: 1.051 MB / 1.136 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0009065/0.9824, allocations: 290.8 kB / 1.136 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.9827, allocations: 107.4 kB / 1.136 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of SimCode: time 9.81e-07/0.9827, allocations: 4 kB / 1.136 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of Templates: time 0.02412/1.007, allocations: 14.82 MB / 1.15 GB, free: 2.586 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.sim & ./Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches