Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.162/2.162, allocations: 251.3 MB / 266.2 MB, free: 11.54 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001315/0.001314, allocations: 182.7 kB / 325.8 MB, free: 2.785 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.317/2.317, allocations: 205.4 MB / 0.5767 GB, free: 20.71 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009342/0.0009337, allocations: 86.66 kB / 0.6812 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004724/0.0004727, allocations: 15.53 kB / 0.7953 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.206, allocations: 106.3 MB / 0.899 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.007687/0.2137, allocations: 5.038 MB / 0.904 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.2126/0.4264, allocations: 140.2 MB / 1.041 GB, free: 15.67 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.4277, allocations: 31.75 kB / 1.041 GB, free: 15.64 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.006269/0.434, allocations: 1.48 MB / 1.042 GB, free: 14.16 MB / 0.698 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.002751/0.4367, allocations: 0.5552 MB / 1.043 GB, free: 13.6 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.003261/0.44, allocations: 0.7271 MB / 1.044 GB, free: 12.88 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.005113/0.4452, allocations: 2.901 MB / 1.046 GB, free: 9.973 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002004/0.4472, allocations: 0.8157 MB / 1.047 GB, free: 9.129 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002536/0.4498, allocations: 0.8911 MB / 1.048 GB, free: 8.234 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.4519, allocations: 0.7559 MB / 1.049 GB, free: 7.477 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0003547/0.4523, allocations: 40 kB / 1.049 GB, free: 7.438 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004769/0.4571, allocations: 1.751 MB / 1.051 GB, free: 5.684 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.002769/0.4599, allocations: 1.767 MB / 1.052 GB, free: 3.914 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0007111/0.4607, allocations: 364.5 kB / 1.053 GB, free: 3.551 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.006091/0.4668, allocations: 3.005 MB / 1.056 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4668, allocations: 4 kB / 1.056 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.334e-06/0.4668, allocations: 0 / 1.056 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.348e-05/0.4669, allocations: 0 / 1.056 GB, free: 0.5352 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.6228/1.09, allocations: 2.389 MB / 1.058 GB, free: 155.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/1.09, allocations: 11.59 kB / 1.058 GB, free: 155.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/1.091, allocations: 296.7 kB / 1.058 GB, free: 155.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006931/1.098, allocations: 4.459 MB / 1.063 GB, free: 154.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/1.099, allocations: 125 kB / 1.063 GB, free: 154.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005191/1.099, allocations: 174.4 kB / 1.063 GB, free: 154.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00447/1.104, allocations: 1.549 MB / 1.064 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/1.104, allocations: 0.7812 kB / 1.064 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001801/1.104, allocations: 53.61 kB / 1.064 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-05/1.104, allocations: 30.41 kB / 1.065 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004792/1.109, allocations: 1.635 MB / 1.066 GB, free: 154.4 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01752/1.126, allocations: 6.753 MB / 1.073 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003646/1.13, allocations: 1.462 MB / 1.074 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/1.132, allocations: 0.9988 MB / 1.075 GB, free: 153.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/1.132, allocations: 35.5 kB / 1.075 GB, free: 153.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002064/1.134, allocations: 0.8856 MB / 1.076 GB, free: 152.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=106): time 4.558e-06/1.134, allocations: 0 / 1.076 GB, free: 152.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=106): time 0.006769/1.141, allocations: 2.672 MB / 1.079 GB, free: 152.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002918/1.141, allocations: 346 kB / 1.079 GB, free: 151.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01263/1.154, allocations: 7.32 MB / 1.086 GB, free: 145.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004618/1.155, allocations: 69.7 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008858/1.156, allocations: 0.7525 MB / 1.087 GB, free: 144.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/1.156, allocations: 356 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/1.156, allocations: 44 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001631/1.156, allocations: 414.7 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005422/1.162, allocations: 4.655 MB / 1.092 GB, free: 139 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006394/1.168, allocations: 5.397 MB / 1.097 GB, free: 133.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006094/1.174, allocations: 5.084 MB / 1.102 GB, free: 128.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.194e-05/1.174, allocations: 8 kB / 1.102 GB, free: 128.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01374/1.188, allocations: 10.56 MB / 1.113 GB, free: 117.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002391/1.188, allocations: 197.5 kB / 1.113 GB, free: 117.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.129e-05/1.189, allocations: 28.06 kB / 1.113 GB, free: 117.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.765e-05/1.189, allocations: 32 kB / 1.113 GB, free: 117.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/1.192, allocations: 0.4906 MB / 1.113 GB, free: 116.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.606e-05/1.192, allocations: 51.55 kB / 1.114 GB, free: 116.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/1.194, allocations: 275.8 kB / 1.114 GB, free: 116.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004102/1.195, allocations: 120 kB / 1.114 GB, free: 116.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 273 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001995/1.197, allocations: 1.225 MB / 1.115 GB, free: 115.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004238/1.197, allocations: 177.6 kB / 1.115 GB, free: 115 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005342/1.203, allocations: 2.616 MB / 1.118 GB, free: 112.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.203, allocations: 8 kB / 1.118 GB, free: 112.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/1.203, allocations: 0 / 1.118 GB, free: 112.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/1.203, allocations: 3.984 kB / 1.118 GB, free: 112.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00774/1.21, allocations: 4.094 MB / 1.122 GB, free: 108.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.966e-06/1.211, allocations: 0 / 1.122 GB, free: 108.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/1.212, allocations: 147.8 kB / 1.122 GB, free: 108.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/1.212, allocations: 4 kB / 1.122 GB, free: 108.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/1.212, allocations: 31.98 kB / 1.122 GB, free: 108.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/1.212, allocations: 4 kB / 1.122 GB, free: 108.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.212, allocations: 0 / 1.122 GB, free: 108.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004525/1.216, allocations: 2.566 MB / 1.125 GB, free: 105.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.218, allocations: 438.2 kB / 1.125 GB, free: 105 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000329/1.218, allocations: 27.94 kB / 1.125 GB, free: 105 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/1.219, allocations: 75.94 kB / 1.125 GB, free: 104.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/1.219, allocations: 68.91 kB / 1.125 GB, free: 104.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/1.22, allocations: 35.98 kB / 1.125 GB, free: 104.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.005161/1.225, allocations: 4.607 MB / 1.13 GB, free: 100.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.32e-07/1.225, allocations: 4 kB / 1.13 GB, free: 100.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003467/1.228, allocations: 0.9886 MB / 1.131 GB, free: 99.25 MB / 0.698 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 (90): * Single equations (assignments): 87 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003111/1.231, allocations: 0.8918 MB / 1.131 GB, free: 98.58 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.009312/1.241, allocations: 7.791 MB / 1.139 GB, free: 90.78 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.241, allocations: 3.938 kB / 1.139 GB, free: 90.78 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.002906/1.244, allocations: 2.184 MB / 1.141 GB, free: 88.58 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/1.246, allocations: 305 kB / 1.142 GB, free: 88.28 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/1.26, allocations: 9.371 MB / 1.151 GB, free: 78.88 MB / 0.698 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]