Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001026/0.001027, allocations: 90.75 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.001411/0.001411, 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.51/1.51, allocations: 223.3 MB / 240 MB, free: 5.207 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.822/2.822, allocations: 437.7 MB / 0.7117 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005176/0.0005177, allocations: 8 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8469/0.8474, allocations: 153.8 MB / 1.022 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.01037/0.8579, allocations: 7.52 MB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1908/1.049, allocations: 141.6 MB / 1.168 GB, free: 10.52 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/1.051, allocations: 35.81 kB / 1.168 GB, free: 10.48 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.006164/1.057, allocations: 1.65 MB / 1.17 GB, free: 8.828 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00464/1.062, allocations: 1.054 MB / 1.171 GB, free: 7.773 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004077/1.066, allocations: 1.058 MB / 1.172 GB, free: 6.723 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0079/1.074, allocations: 4.926 MB / 1.177 GB, free: 1.789 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00259/1.077, allocations: 0.954 MB / 1.177 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003815/1.08, allocations: 1.385 MB / 1.179 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/1.084, allocations: 1.288 MB / 1.18 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.001006/1.085, allocations: 68 kB / 1.18 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005785/1.091, allocations: 2.071 MB / 1.182 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004892/1.096, allocations: 4.241 MB / 1.186 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001683/1.097, allocations: 0.5742 MB / 1.187 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00924/1.107, allocations: 4.751 MB / 1.192 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/1.107, allocations: 0 / 1.192 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.178e-06/1.107, allocations: 0 / 1.192 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0003186/1.107, allocations: 0 / 1.192 GB, free: 2.387 MB / 0.9356 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.01124/1.118, allocations: 3.545 MB / 1.195 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/1.118, allocations: 12.52 kB / 1.195 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002667/1.121, allocations: 435.5 kB / 1.195 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01599/1.137, allocations: 12.21 MB / 1.207 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002455/1.137, allocations: 171.1 kB / 1.207 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00081/1.138, allocations: 239.9 kB / 1.208 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004975/1.143, allocations: 2.115 MB / 1.21 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/1.143, allocations: 0 / 1.21 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/1.143, allocations: 72 kB / 1.21 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/1.143, allocations: 36 kB / 1.21 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004119/1.148, allocations: 2.213 MB / 1.212 GB, free: 13.14 MB / 0.9669 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.0228/1.17, allocations: 15.66 MB / 1.227 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003218/1.174, allocations: 1.605 MB / 1.229 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/1.175, allocations: 0.9142 MB / 1.23 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/1.175, allocations: 41.03 kB / 1.23 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001989/1.177, allocations: 1.112 MB / 1.231 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=138): time 3.947e-06/1.177, allocations: 0 / 1.231 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=138): time 0.00679/1.184, allocations: 3.065 MB / 1.234 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000281/1.184, allocations: 362.5 kB / 1.234 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03448/1.219, allocations: 20.61 MB / 1.254 GB, free: 1.398 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006464/1.219, allocations: 89.64 kB / 1.254 GB, free: 1.305 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001998/1.221, allocations: 1.159 MB / 1.256 GB, free: 140 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.6943/1.916, allocations: 456.3 kB / 1.256 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006069/1.917, allocations: 64.72 kB / 1.256 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0004634/1.917, allocations: 455.8 kB / 1.257 GB, free: 226.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01882/1.936, allocations: 12.14 MB / 1.268 GB, free: 224.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01189/1.948, allocations: 13.13 MB / 1.281 GB, free: 218.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008575/1.956, allocations: 12.67 MB / 1.294 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.301e-05/1.956, allocations: 8 kB / 1.294 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=427) (initialization): time 0.02059/1.977, allocations: 26.02 MB / 1.319 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001982/1.977, allocations: 204.2 kB / 1.319 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.342e-05/1.977, allocations: 28 kB / 1.319 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006145/1.978, allocations: 132.3 kB / 1.319 GB, free: 182 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002894/1.981, allocations: 0.7146 MB / 1.32 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/1.983, allocations: 1.588 MB / 1.322 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003515/1.987, allocations: 413.7 kB / 1.322 GB, free: 179.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003958/1.987, allocations: 169.2 kB / 1.322 GB, free: 179.2 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.002812/1.99, allocations: 2.537 MB / 1.325 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004571/1.99, allocations: 260.5 kB / 1.325 GB, free: 176.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004598/1.995, allocations: 2.976 MB / 1.328 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/1.995, allocations: 17.84 kB / 1.328 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/1.995, allocations: 0 / 1.328 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/1.995, allocations: 3.984 kB / 1.328 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/1.998, allocations: 2.08 MB / 1.33 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/1.998, allocations: 4 kB / 1.33 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008426/1.999, allocations: 219.1 kB / 1.33 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004628/2, allocations: 88.77 kB / 1.33 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/2, allocations: 43.97 kB / 1.33 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/2.001, allocations: 1.544 MB / 1.332 GB, free: 169.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/2.001, allocations: 0 / 1.332 GB, free: 169.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/2.005, allocations: 2.811 MB / 1.334 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009632/2.006, allocations: 0.6219 MB / 1.335 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002706/2.007, allocations: 36 kB / 1.335 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/2.007, allocations: 123.8 kB / 1.335 GB, free: 166 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/2.008, allocations: 107.2 kB / 1.335 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/2.008, allocations: 77.33 kB / 1.335 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00801/2.016, allocations: 12.8 MB / 1.348 GB, free: 153 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.51e-07/2.016, allocations: 4 kB / 1.348 GB, free: 153 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003775/2.02, allocations: 1.311 MB / 1.349 GB, free: 151.8 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.002226/2.022, allocations: 0.9976 MB / 1.35 GB, free: 151 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0104/2.032, allocations: 15.73 MB / 1.365 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/2.032, allocations: 4 kB / 1.365 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002256/2.035, allocations: 2.464 MB / 1.368 GB, free: 132.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/2.037, allocations: 452.8 kB / 1.368 GB, free: 132.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/2.058, allocations: 21.18 MB / 1.389 GB, free: 111.1 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]