Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.1|2.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaUns_flow.2|2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|winAbs.QAbsGlaUns_flow.1|1.|winAbs.QAbsGlaUns_flow.1|2.|winAbs.QAbsGlaUns_flow.2|1.|winAbs.QAbsGlaUns_flow.2|2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001848/0.001848, allocations: 168.7 kB / 15.95 MB, free: 200 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.456/1.456, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.563/2.563, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003385, allocations: 8 kB / 0.8153 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7566/0.757, allocations: 142.4 MB / 0.9544 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005383/0.7624, allocations: 5.265 MB / 0.9596 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1734/0.9359, allocations: 140.6 MB / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.9373, allocations: 23.88 kB / 1.097 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00476/0.9421, allocations: 1.51 MB / 1.098 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002398/0.9445, allocations: 0.6196 MB / 1.099 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.947, allocations: 0.78 MB / 1.1 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003742/0.9508, allocations: 3.01 MB / 1.103 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.9522, allocations: 0.7263 MB / 1.103 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.9543, allocations: 0.9456 MB / 1.104 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.9561, allocations: 0.8169 MB / 1.105 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004488/0.9565, allocations: 48 kB / 1.105 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004127/0.9607, allocations: 1.825 MB / 1.107 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001939/0.9626, allocations: 1.79 MB / 1.109 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.9637, allocations: 388.5 kB / 1.109 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005805/0.9695, allocations: 3.196 MB / 1.112 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.9696, allocations: 0 / 1.112 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.785e-06/0.9696, allocations: 0 / 1.112 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001402/0.9697, allocations: 0 / 1.112 GB, free: 13.51 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.006103/0.9758, allocations: 2.522 MB / 1.115 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.9759, allocations: 12.03 kB / 1.115 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.9771, allocations: 308.8 kB / 1.115 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00551/0.9827, allocations: 4.506 MB / 1.119 GB, free: 6.051 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.9828, allocations: 138.3 kB / 1.119 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/0.9832, allocations: 184 kB / 1.12 GB, free: 5.734 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/0.9861, allocations: 1.434 MB / 1.121 GB, free: 4.238 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.9861, allocations: 0 / 1.121 GB, free: 4.238 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.9863, allocations: 48 kB / 1.121 GB, free: 4.191 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.9863, allocations: 32 kB / 1.121 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.9888, allocations: 1.496 MB / 1.123 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.9996, allocations: 7.119 MB / 1.13 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/1.002, allocations: 1.255 MB / 1.131 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/1.003, allocations: 0.6871 MB / 1.131 GB, free: 9.512 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/1.003, allocations: 36.94 kB / 1.131 GB, free: 9.477 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001415/1.005, allocations: 0.7741 MB / 1.132 GB, free: 8.684 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=118): time 5.029e-06/1.005, allocations: 0 / 1.132 GB, free: 8.684 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118): time 0.004214/1.009, allocations: 2.164 MB / 1.134 GB, free: 6.512 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002385/1.009, allocations: 342.5 kB / 1.135 GB, free: 6.125 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/1.02, allocations: 7.384 MB / 1.142 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0004188/1.02, allocations: 69.7 kB / 1.142 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001041/1.021, allocations: 0.7959 MB / 1.143 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005196/1.022, allocations: 386.5 kB / 1.143 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003381/1.022, allocations: 48 kB / 1.143 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002814/1.022, allocations: 427 kB / 1.144 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004593/1.027, allocations: 4.464 MB / 1.148 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005129/1.032, allocations: 5.222 MB / 1.153 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00525/1.037, allocations: 4.888 MB / 1.158 GB, free: 14.06 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.365e-05/1.037, allocations: 4 kB / 1.158 GB, free: 14.05 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01169/1.049, allocations: 10.21 MB / 1.168 GB, free: 3.824 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.000267/1.049, allocations: 182.8 kB / 1.168 GB, free: 3.641 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.703e-05/1.05, allocations: 24 kB / 1.168 GB, free: 3.617 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.09e-05/1.05, allocations: 36 kB / 1.168 GB, free: 3.582 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/1.052, allocations: 0.507 MB / 1.168 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.443e-05/1.052, allocations: 44.05 kB / 1.169 GB, free: 3.031 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/1.054, allocations: 308.9 kB / 1.169 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003956/1.054, allocations: 124 kB / 1.169 GB, free: 2.605 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (290): * Single equations (assignments): 289 * 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.002035/1.056, allocations: 1.258 MB / 1.17 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000567/1.057, allocations: 185.5 kB / 1.17 GB, free: 1.145 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/1.061, allocations: 2.288 MB / 1.173 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/1.061, allocations: 12 kB / 1.173 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/1.061, allocations: 3.938 kB / 1.173 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/1.061, allocations: 7.969 kB / 1.173 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002556/1.063, allocations: 1.48 MB / 1.174 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.063, allocations: 3.984 kB / 1.174 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/1.064, allocations: 159.7 kB / 1.174 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.637e-05/1.064, allocations: 4 kB / 1.174 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/1.064, allocations: 39.97 kB / 1.174 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.04e-05/1.064, allocations: 8 kB / 1.174 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/1.064, allocations: 0 / 1.174 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003319/1.068, allocations: 2.171 MB / 1.176 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008961/1.069, allocations: 466.1 kB / 1.177 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/1.069, allocations: 32 kB / 1.177 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009229/1.07, allocations: 91.92 kB / 1.177 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/1.07, allocations: 80.89 kB / 1.177 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.07, allocations: 47.97 kB / 1.177 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.004758/1.075, allocations: 4.656 MB / 1.182 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.31e-07/1.075, allocations: 0 / 1.182 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003137/1.078, allocations: 1.045 MB / 1.183 GB, free: 4.422 MB / 0.9356 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 (HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 96 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002879/1.081, allocations: 0.9472 MB / 1.184 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.007646/1.089, allocations: 7.444 MB / 1.191 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/1.089, allocations: 5.812 kB / 1.191 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002173/1.091, allocations: 2.016 MB / 1.193 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.093, allocations: 309.8 kB / 1.193 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/1.108, allocations: 9.33 MB / 1.202 GB, free: 500 kB / 0.9512 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]