Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_latest_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001447/0.001447, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.69/1.69, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.991/2.991, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005411/0.0005414, allocations: 11.44 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4225, allocations: 159.6 MB / 1.058 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.009521/0.432, allocations: 7.487 MB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1868/0.6188, allocations: 141.6 MB / 1.204 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.621, allocations: 31.81 kB / 1.204 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.005211/0.6262, allocations: 1.654 MB / 1.205 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004122/0.6304, allocations: 1.049 MB / 1.206 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003964/0.6344, allocations: 1.059 MB / 1.207 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006708/0.6411, allocations: 4.933 MB / 1.212 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.643, allocations: 0.9539 MB / 1.213 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003178/0.6462, allocations: 1.385 MB / 1.214 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.6489, allocations: 1.292 MB / 1.216 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0004495/0.6493, allocations: 68 kB / 1.216 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005343/0.6547, allocations: 2.059 MB / 1.218 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.004658/0.6594, allocations: 4.241 MB / 1.222 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.6608, allocations: 0.5742 MB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00786/0.6687, allocations: 4.751 MB / 1.227 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.6688, allocations: 3.938 kB / 1.227 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.803e-06/0.6688, allocations: 3.938 kB / 1.227 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001376/0.6689, allocations: 0 / 1.227 GB, free: 7.633 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 0.008453/0.6774, allocations: 3.534 MB / 1.231 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.6774, allocations: 12.03 kB / 1.231 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.6793, allocations: 443.4 kB / 1.231 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/0.6936, allocations: 12.22 MB / 1.243 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.6938, allocations: 171.1 kB / 1.243 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004772/0.6943, allocations: 240 kB / 1.243 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004158/0.6985, allocations: 2.119 MB / 1.245 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6985, allocations: 0 / 1.245 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002143/0.6988, allocations: 72 kB / 1.245 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.616e-05/0.6988, allocations: 39.94 kB / 1.246 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003565/0.7024, allocations: 2.213 MB / 1.248 GB, free: 2.383 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7065/1.409, allocations: 15.64 MB / 1.263 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003932/1.413, allocations: 1.608 MB / 1.265 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/1.414, allocations: 0.916 MB / 1.265 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/1.415, allocations: 37.34 kB / 1.265 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001954/1.417, allocations: 1.109 MB / 1.267 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=138): time 3.536e-06/1.417, allocations: 0.8438 kB / 1.267 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=138): time 0.006852/1.423, allocations: 3.069 MB / 1.27 GB, free: 184.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002644/1.424, allocations: 364.2 kB / 1.27 GB, free: 183.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03349/1.457, allocations: 20.6 MB / 1.29 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007658/1.458, allocations: 85.7 kB / 1.29 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/1.459, allocations: 1.171 MB / 1.291 GB, free: 175.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000469/1.46, allocations: 460.2 kB / 1.292 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/1.46, allocations: 64 kB / 1.292 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001892/1.46, allocations: 458.3 kB / 1.292 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008778/1.469, allocations: 12.13 MB / 1.304 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009377/1.478, allocations: 13.13 MB / 1.317 GB, free: 150.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00851/1.487, allocations: 12.67 MB / 1.329 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.869e-05/1.487, allocations: 8 kB / 1.329 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=427) (initialization): time 0.01827/1.505, allocations: 26.01 MB / 1.355 GB, free: 111.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001828/1.506, allocations: 209.6 kB / 1.355 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.403e-05/1.506, allocations: 28 kB / 1.355 GB, free: 111.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005817/1.506, allocations: 132.9 kB / 1.355 GB, free: 111.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002572/1.509, allocations: 0.7168 MB / 1.356 GB, free: 110.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/1.511, allocations: 1.584 MB / 1.357 GB, free: 109.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/1.513, allocations: 406.9 kB / 1.358 GB, free: 108.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000338/1.513, allocations: 172.3 kB / 1.358 GB, free: 108.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.HDirTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.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 (396): * Single equations (assignments): 394 * 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.00232/1.516, allocations: 2.532 MB / 1.36 GB, free: 106 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004278/1.516, allocations: 256.5 kB / 1.36 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/1.521, allocations: 2.991 MB / 1.363 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/1.521, allocations: 12 kB / 1.363 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/1.521, allocations: 3.953 kB / 1.363 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/1.521, allocations: 7.969 kB / 1.363 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/1.523, allocations: 2.072 MB / 1.365 GB, free: 100.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.523, allocations: 3.656 kB / 1.365 GB, free: 100.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/1.524, allocations: 219.7 kB / 1.366 GB, free: 100.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004715/1.525, allocations: 76.78 kB / 1.366 GB, free: 100.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/1.525, allocations: 48.98 kB / 1.366 GB, free: 100.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/1.526, allocations: 1.549 MB / 1.367 GB, free: 98.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.526, allocations: 0.9375 kB / 1.367 GB, free: 98.58 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004124/1.53, allocations: 2.816 MB / 1.37 GB, free: 95.73 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/1.532, allocations: 0.6258 MB / 1.371 GB, free: 95.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/1.532, allocations: 28 kB / 1.371 GB, free: 95.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/1.533, allocations: 131.9 kB / 1.371 GB, free: 94.92 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/1.533, allocations: 108.8 kB / 1.371 GB, free: 94.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.533, allocations: 63.97 kB / 1.371 GB, free: 94.75 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.009174/1.542, allocations: 12.8 MB / 1.383 GB, free: 81.95 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9.71e-07/1.542, allocations: 0 / 1.383 GB, free: 81.95 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005436/1.548, allocations: 1.32 MB / 1.385 GB, free: 80.72 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.002958/1.551, allocations: 0.9904 MB / 1.386 GB, free: 80.01 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.562, allocations: 15.73 MB / 1.401 GB, free: 64.27 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/1.562, allocations: 7.938 kB / 1.401 GB, free: 64.26 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002723/1.565, allocations: 2.464 MB / 1.403 GB, free: 61.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/1.567, allocations: 459.9 kB / 1.404 GB, free: 61.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0215/1.589, allocations: 21.16 MB / 1.425 GB, free: 40.11 MB / 0.9981 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]