Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01056/0.01057, allocations: 220.3 kB / 15.17 MB, free: 6.012 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001173/0.001173, allocations: 176.2 kB / 16.06 MB, free: 5.875 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.403/3.403, allocations: 389.1 MB / 405.9 MB, free: 68.51 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.009/4.009, allocations: 472.3 MB / 0.9018 GB, free: 13.38 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004845/0.0004847, allocations: 20 kB / 1.008 GB, free: 0.8164 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4856/0.4861, allocations: 98.72 MB / 1.104 GB, free: 183.9 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005255/0.4914, allocations: 4.915 MB / 1.109 GB, free: 179 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.1378/0.6292, allocations: 140.1 MB / 1.246 GB, free: 39.18 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008636/0.6302, allocations: 15.94 kB / 1.246 GB, free: 39.16 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003819/0.634, allocations: 1.44 MB / 1.247 GB, free: 37.73 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.6359, allocations: 0.5832 MB / 1.248 GB, free: 37.14 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002214/0.6381, allocations: 0.7574 MB / 1.248 GB, free: 36.39 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002446/0.6406, allocations: 2.791 MB / 1.251 GB, free: 33.6 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009438/0.6416, allocations: 0.6661 MB / 1.252 GB, free: 32.96 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009852/0.6426, allocations: 0.8559 MB / 1.253 GB, free: 32.1 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009864/0.6436, allocations: 0.7821 MB / 1.253 GB, free: 31.31 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.000171/0.6438, allocations: 44 kB / 1.253 GB, free: 31.27 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.6468, allocations: 1.763 MB / 1.255 GB, free: 29.5 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.6482, allocations: 1.767 MB / 1.257 GB, free: 27.73 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004339/0.6486, allocations: 364.6 kB / 1.257 GB, free: 27.37 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003899/0.6526, allocations: 3.01 MB / 1.26 GB, free: 24.36 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.344e-06/0.6526, allocations: 4 kB / 1.26 GB, free: 24.35 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.658e-06/0.6526, allocations: 0 / 1.26 GB, free: 24.35 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.533e-05/0.6526, allocations: 0 / 1.26 GB, free: 24.35 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003618/0.6563, allocations: 2.414 MB / 1.263 GB, free: 21.86 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.6563, allocations: 12.02 kB / 1.263 GB, free: 21.85 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/0.6585, allocations: 418.1 kB / 1.263 GB, free: 21.44 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005036/0.6636, allocations: 4.415 MB / 1.267 GB, free: 16.98 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.824e-05/0.6637, allocations: 122.2 kB / 1.267 GB, free: 16.86 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002744/0.664, allocations: 172 kB / 1.268 GB, free: 16.69 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.6667, allocations: 1.37 MB / 1.269 GB, free: 15.26 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.6668, allocations: 8 kB / 1.269 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.6669, allocations: 48 kB / 1.269 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.6669, allocations: 24 kB / 1.269 GB, free: 15.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0032/0.6701, allocations: 1.55 MB / 1.27 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.6806, allocations: 6.817 MB / 1.277 GB, free: 6.734 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.6834, allocations: 1.262 MB / 1.278 GB, free: 5.473 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.6847, allocations: 0.7024 MB / 1.279 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006576/0.6854, allocations: 490.2 kB / 1.279 GB, free: 4.195 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.6869, allocations: 0.7208 MB / 1.28 GB, free: 3.465 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=106): time 5.118e-06/0.6869, allocations: 0 / 1.28 GB, free: 3.465 MB / 0.6823 GB Notification: Performance of matching and sorting (n=106): time 0.004418/0.6913, allocations: 2.142 MB / 1.282 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.6915, allocations: 316.5 kB / 1.283 GB, free: 0.957 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4516/1.143, allocations: 7.266 MB / 1.29 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002974/1.143, allocations: 66.39 kB / 1.29 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008107/1.144, allocations: 0.7166 MB / 1.29 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/1.145, allocations: 358.1 kB / 1.291 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/1.145, allocations: 46.53 kB / 1.291 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001721/1.145, allocations: 411.7 kB / 1.291 GB, free: 173.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006932/1.152, allocations: 4.49 MB / 1.296 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005494/1.157, allocations: 5.227 MB / 1.301 GB, free: 167.6 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005228/1.163, allocations: 4.957 MB / 1.306 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/1.163, allocations: 8 kB / 1.306 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01114/1.174, allocations: 10.46 MB / 1.316 GB, free: 152.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/1.174, allocations: 237 kB / 1.316 GB, free: 152.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.302e-05/1.174, allocations: 24 kB / 1.316 GB, free: 152.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.815e-05/1.174, allocations: 36.75 kB / 1.316 GB, free: 152.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002205/1.176, allocations: 0.5099 MB / 1.317 GB, free: 151.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.511e-05/1.177, allocations: 47.86 kB / 1.317 GB, free: 151.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.178, allocations: 290.1 kB / 1.317 GB, free: 151.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/1.179, allocations: 120 kB / 1.317 GB, free: 151.4 MB / 0.6823 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.conTim1.tNext,weaDat.conTim1.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTim1.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (276): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 3 * 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.001448/1.18, allocations: 1.229 MB / 1.318 GB, free: 150.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/1.18, allocations: 166.8 kB / 1.318 GB, free: 150 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/1.185, allocations: 2.242 MB / 1.321 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/1.185, allocations: 8.938 kB / 1.321 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.399e-06/1.185, allocations: 3.469 kB / 1.321 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/1.185, allocations: 3.984 kB / 1.321 GB, free: 147.7 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006091/1.191, allocations: 3.732 MB / 1.324 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.191, allocations: 0 / 1.324 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000923/1.192, allocations: 170.5 kB / 1.324 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-06/1.192, allocations: 0 / 1.324 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/1.192, allocations: 39.92 kB / 1.324 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.924e-06/1.192, allocations: 4 kB / 1.324 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.709e-06/1.192, allocations: 0 / 1.324 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/1.196, allocations: 2.176 MB / 1.327 GB, free: 141.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000729/1.196, allocations: 459.3 kB / 1.327 GB, free: 141.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/1.197, allocations: 27.19 kB / 1.327 GB, free: 141.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.198, allocations: 88.84 kB / 1.327 GB, free: 141 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/1.198, allocations: 60.92 kB / 1.327 GB, free: 140.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.198, allocations: 51.34 kB / 1.327 GB, free: 140.9 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.003995/1.202, allocations: 4.563 MB / 1.332 GB, free: 136.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.84e-07/1.202, allocations: 0 / 1.332 GB, free: 136.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002584/1.205, allocations: 1.016 MB / 1.333 GB, free: 135.4 MB / 0.6823 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.conTim1.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTim1.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * 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.00283/1.207, allocations: 0.9694 MB / 1.334 GB, free: 134.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.007654/1.215, allocations: 7.545 MB / 1.341 GB, free: 127.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.796e-06/1.215, allocations: 0 / 1.341 GB, free: 127.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002294/1.217, allocations: 2.001 MB / 1.343 GB, free: 125.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/1.219, allocations: 249.6 kB / 1.343 GB, free: 125 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/1.23, allocations: 9.097 MB / 1.352 GB, free: 116 MB / 0.6823 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]