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.WindowRadiationElectrochromic.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.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01039/0.01039, allocations: 223 kB / 15.17 MB, free: 5.93 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.001073/0.001074, allocations: 181.8 kB / 16.06 MB, free: 5.828 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.252/3.252, allocations: 389.1 MB / 405.9 MB, free: 67.62 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.06/4.06, allocations: 472.3 MB / 0.9018 GB, free: 13.38 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005008, allocations: 12 kB / 1.008 GB, free: 0.8242 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4889/0.4894, allocations: 98.72 MB / 1.104 GB, free: 183.9 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006252/0.4957, allocations: 6.021 MB / 1.11 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.1839/0.6796, allocations: 141 MB / 1.248 GB, free: 37.19 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.6808, allocations: 31.75 kB / 1.248 GB, free: 37.16 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003862/0.6846, allocations: 1.537 MB / 1.249 GB, free: 35.62 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.6868, allocations: 0.9126 MB / 1.25 GB, free: 34.71 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.6894, allocations: 0.9848 MB / 1.251 GB, free: 33.73 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.006491/0.6959, allocations: 4.474 MB / 1.255 GB, free: 29.25 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002094/0.6981, allocations: 0.9492 MB / 1.256 GB, free: 28.34 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002639/0.7007, allocations: 1.238 MB / 1.257 GB, free: 27.09 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00235/0.7031, allocations: 1.214 MB / 1.259 GB, free: 25.88 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003844/0.7035, allocations: 68 kB / 1.259 GB, free: 25.81 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005362/0.7089, allocations: 1.997 MB / 1.261 GB, free: 23.81 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.00309/0.712, allocations: 4.222 MB / 1.265 GB, free: 19.58 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.7126, allocations: 0.5313 MB / 1.265 GB, free: 19.04 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.00426/0.7169, allocations: 4.521 MB / 1.27 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.455e-06/0.7169, allocations: 0 / 1.27 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.969e-06/0.7169, allocations: 0 / 1.27 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.075e-05/0.7169, allocations: 0 / 1.27 GB, free: 14.51 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005101/0.722, allocations: 3.395 MB / 1.273 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.7221, allocations: 12.69 kB / 1.273 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/0.7246, allocations: 0.5346 MB / 1.274 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4502/1.175, allocations: 12.11 MB / 1.285 GB, free: 173.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/1.175, allocations: 170.7 kB / 1.286 GB, free: 173.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004048/1.175, allocations: 223.8 kB / 1.286 GB, free: 173.6 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004767/1.18, allocations: 2.063 MB / 1.288 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/1.18, allocations: 0 / 1.288 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/1.181, allocations: 68.06 kB / 1.288 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-05/1.181, allocations: 38.69 kB / 1.288 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005329/1.186, allocations: 2.255 MB / 1.29 GB, free: 172.2 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02345/1.209, allocations: 14.99 MB / 1.305 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/1.213, allocations: 1.611 MB / 1.306 GB, free: 161.1 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/1.215, allocations: 0.9294 MB / 1.307 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006053/1.215, allocations: 477.5 kB / 1.308 GB, free: 159.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/1.217, allocations: 1.079 MB / 1.309 GB, free: 158.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 3.988e-06/1.217, allocations: 0 / 1.309 GB, free: 158.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.006843/1.224, allocations: 3.039 MB / 1.312 GB, free: 155.4 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/1.224, allocations: 333.5 kB / 1.312 GB, free: 155.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03544/1.26, allocations: 20.48 MB / 1.332 GB, free: 134.6 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004198/1.26, allocations: 89.69 kB / 1.332 GB, free: 134.5 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001071/1.261, allocations: 1.092 MB / 1.333 GB, free: 133.4 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003498/1.262, allocations: 429 kB / 1.334 GB, free: 133 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/1.262, allocations: 64 kB / 1.334 GB, free: 132.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001891/1.262, allocations: 452.8 kB / 1.334 GB, free: 132.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01022/1.272, allocations: 12.16 MB / 1.346 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/1.284, allocations: 13.14 MB / 1.359 GB, free: 106.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/1.294, allocations: 12.73 MB / 1.371 GB, free: 94.09 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.684e-05/1.295, allocations: 12 kB / 1.371 GB, free: 94.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.02369/1.318, allocations: 26.13 MB / 1.397 GB, free: 67.95 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002309/1.318, allocations: 265 kB / 1.397 GB, free: 67.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.015e-05/1.319, allocations: 34.75 kB / 1.397 GB, free: 67.64 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/1.319, allocations: 126.3 kB / 1.397 GB, free: 67.52 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/1.323, allocations: 0.7107 MB / 1.398 GB, free: 66.81 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/1.325, allocations: 1.58 MB / 1.399 GB, free: 65.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/1.327, allocations: 382.9 kB / 1.4 GB, free: 64.73 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003612/1.328, allocations: 164.9 kB / 1.4 GB, free: 64.57 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (382): * Single equations (assignments): 378 * 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: 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.002645/1.33, allocations: 2.509 MB / 1.402 GB, free: 62.05 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003751/1.331, allocations: 245.7 kB / 1.403 GB, free: 61.81 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005897/1.337, allocations: 2.939 MB / 1.405 GB, free: 58.9 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/1.337, allocations: 11.09 kB / 1.405 GB, free: 58.89 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.608e-06/1.337, allocations: 3.953 kB / 1.405 GB, free: 58.89 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/1.337, allocations: 3.984 kB / 1.405 GB, free: 58.89 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008476/1.345, allocations: 4.959 MB / 1.41 GB, free: 53.89 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.307e-06/1.345, allocations: 0 / 1.41 GB, free: 53.89 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/1.346, allocations: 210.6 kB / 1.411 GB, free: 53.69 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005619/1.347, allocations: 88.02 kB / 1.411 GB, free: 53.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/1.347, allocations: 33.05 kB / 1.411 GB, free: 53.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/1.349, allocations: 1.551 MB / 1.412 GB, free: 51.89 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.461e-06/1.349, allocations: 8.594 kB / 1.412 GB, free: 51.89 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005221/1.354, allocations: 2.827 MB / 1.415 GB, free: 49.04 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.355, allocations: 0.6173 MB / 1.416 GB, free: 48.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/1.356, allocations: 29.27 kB / 1.416 GB, free: 48.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/1.357, allocations: 112.7 kB / 1.416 GB, free: 48.27 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/1.357, allocations: 80.89 kB / 1.416 GB, free: 48.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/1.358, allocations: 60.47 kB / 1.416 GB, free: 48.14 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.01062/1.368, allocations: 12.71 MB / 1.428 GB, free: 35.42 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.578e-06/1.368, allocations: 0 / 1.428 GB, free: 35.42 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.003612/1.372, allocations: 1.269 MB / 1.429 GB, free: 34.24 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.conTim1.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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.003004/1.375, allocations: 1.007 MB / 1.43 GB, free: 33.56 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01424/1.389, allocations: 15.84 MB / 1.446 GB, free: 17.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.962e-06/1.389, allocations: 4 kB / 1.446 GB, free: 17.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.003212/1.392, allocations: 2.434 MB / 1.448 GB, free: 15.24 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/1.395, allocations: 378.8 kB / 1.449 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02987/1.424, allocations: 21.06 MB / 1.469 GB, free: 10.03 MB / 0.698 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]