Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008889/0.0008888, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0007772/0.0007772, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.4 MB / 222.1 MB, free: 5.395 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.652/1.652, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005237, allocations: 14.06 kB / 0.6737 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2095, allocations: 116.3 MB / 0.7873 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiation): time 0.007032/0.2166, allocations: 5.861 MB / 0.793 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.5484/0.765, allocations: 141.2 MB / 0.9309 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.7663, allocations: 29.25 kB / 0.9309 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003949/0.7703, allocations: 1.618 MB / 0.9325 GB, free: 2.719 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.002344/0.7726, allocations: 0.8972 MB / 0.9334 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002626/0.7753, allocations: 1.023 MB / 0.9344 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.005128/0.7804, allocations: 4.582 MB / 0.9388 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.7822, allocations: 0.887 MB / 0.9397 GB, free: 17.91 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00302/0.7852, allocations: 1.306 MB / 0.941 GB, free: 17.65 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00232/0.7875, allocations: 1.162 MB / 0.9421 GB, free: 17.42 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003901/0.7879, allocations: 62.84 kB / 0.9422 GB, free: 17.42 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003724/0.7917, allocations: 1.79 MB / 0.9439 GB, free: 17.35 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002313/0.794, allocations: 2.647 MB / 0.9465 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007021/0.7947, allocations: 442.2 kB / 0.9469 GB, free: 17.13 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.004598/0.7993, allocations: 3.616 MB / 0.9505 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.7993, allocations: 0 / 0.9505 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7993, allocations: 0 / 0.9505 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.753e-05/0.7994, allocations: 0 / 0.9505 GB, free: 16.89 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 362 * Number of variables: 362 Notification: Performance of Generate backend data structure: time 0.005067/0.8045, allocations: 2.714 MB / 0.9531 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.8045, allocations: 8.906 kB / 0.9531 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.8057, allocations: 352.5 kB / 0.9535 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007273/0.813, allocations: 7.286 MB / 0.9606 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.454e-05/0.8131, allocations: 132.1 kB / 0.9607 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.8134, allocations: 177.9 kB / 0.9609 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.8159, allocations: 1.672 MB / 0.9625 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.8159, allocations: 3.984 kB / 0.9625 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.816, allocations: 62.72 kB / 0.9626 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.8161, allocations: 31.25 kB / 0.9626 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.8183, allocations: 1.73 MB / 0.9643 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.8297, allocations: 9.848 MB / 0.9739 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.8321, allocations: 1.44 MB / 0.9753 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009867/0.8331, allocations: 0.8158 MB / 0.9761 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.09e-05/0.8332, allocations: 37.36 kB / 0.9761 GB, free: 9.734 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00127/0.8345, allocations: 0.933 MB / 0.9771 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=105): time 2.675e-06/0.8345, allocations: 0 / 0.9771 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of matching and sorting (n=105): time 0.005642/0.8402, allocations: 2.768 MB / 0.9798 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/0.8404, allocations: 345.9 kB / 0.9801 GB, free: 8.566 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01295/0.8534, allocations: 11.51 MB / 0.9913 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004809/0.8539, allocations: 62.02 kB / 0.9914 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009464/0.8548, allocations: 0.9258 MB / 0.9923 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.8552, allocations: 362.7 kB / 0.9926 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.8554, allocations: 44.81 kB / 0.9927 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.8556, allocations: 399.5 kB / 0.9931 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005525/0.8611, allocations: 6.842 MB / 0.9997 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/0.8672, allocations: 7.158 MB / 1.007 GB, free: 10.26 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006152/0.8734, allocations: 7.165 MB / 1.014 GB, free: 4.945 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.8734, allocations: 4 kB / 1.014 GB, free: 4.941 MB / 0.7481 GB Notification: Performance of matching and sorting (n=280) (initialization): time 0.0141/0.8875, allocations: 14.73 MB / 1.028 GB, free: 9.855 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.8877, allocations: 168 kB / 1.028 GB, free: 9.715 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.8878, allocations: 4 kB / 1.028 GB, free: 9.711 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005578/0.8883, allocations: 112.4 kB / 1.028 GB, free: 9.609 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/0.8902, allocations: 459.2 kB / 1.029 GB, free: 9.176 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.8921, allocations: 1.539 MB / 1.03 GB, free: 7.625 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.8937, allocations: 224.3 kB / 1.031 GB, free: 7.438 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/0.8939, allocations: 110.9 kB / 1.031 GB, free: 7.348 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001911/0.8959, allocations: 1.528 MB / 1.032 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004262/0.8963, allocations: 197.4 kB / 1.032 GB, free: 5.992 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/0.9007, allocations: 2.464 MB / 1.035 GB, free: 4.133 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.9008, allocations: 12 kB / 1.035 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.9008, allocations: 0 / 1.035 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.9008, allocations: 3.984 kB / 1.035 GB, free: 4.117 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00656/0.9073, allocations: 4.272 MB / 1.039 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.9074, allocations: 0 / 1.039 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006819/0.9081, allocations: 181.9 kB / 1.039 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004766/0.9085, allocations: 80.52 kB / 1.039 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-05/0.9086, allocations: 47.36 kB / 1.039 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.9104, allocations: 1.535 MB / 1.041 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.9104, allocations: 0 / 1.041 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003899/0.9143, allocations: 2.356 MB / 1.043 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009343/0.9153, allocations: 0.5263 MB / 1.044 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.9155, allocations: 23.94 kB / 1.044 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007976/0.9163, allocations: 78.62 kB / 1.044 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.9165, allocations: 78.89 kB / 1.044 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.964e-05/0.9166, allocations: 52.66 kB / 1.044 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.006234/0.9228, allocations: 7.215 MB / 1.051 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.8e-07/0.9229, allocations: 0 / 1.051 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003752/0.9266, allocations: 1.083 MB / 1.052 GB, free: 6.266 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002474/0.9291, allocations: 0.9083 MB / 1.053 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.009433/0.9386, allocations: 9.455 MB / 1.062 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.9386, allocations: 0 / 1.062 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.9407, allocations: 1.681 MB / 1.064 GB, free: 13.84 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.9429, allocations: 380.3 kB / 1.064 GB, free: 13.57 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/0.9604, allocations: 12.42 MB / 1.076 GB, free: 1.941 MB / 0.795 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]