Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001047/0.001047, 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.001424/0.001425, 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.413/1.413, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.837/2.837, allocations: 462.6 MB / 0.736 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.000372, allocations: 10.59 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3752, allocations: 159.6 MB / 1.058 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.007451/0.3827, allocations: 6.373 MB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1743/0.5571, allocations: 140.7 MB / 1.202 GB, free: 1.863 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.5585, allocations: 23.88 kB / 1.202 GB, free: 1.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.5629, allocations: 1.53 MB / 1.203 GB, free: 312 kB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002391/0.5653, allocations: 0.715 MB / 1.204 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002203/0.5675, allocations: 0.7818 MB / 1.205 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003546/0.5711, allocations: 3.199 MB / 1.208 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.5722, allocations: 0.6957 MB / 1.208 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001862/0.574, allocations: 0.9768 MB / 1.209 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.5754, allocations: 0.8405 MB / 1.21 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.5756, allocations: 55.94 kB / 1.21 GB, free: 9 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003483/0.5791, allocations: 1.822 MB / 1.212 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.5806, allocations: 1.794 MB / 1.214 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.5812, allocations: 408.5 kB / 1.214 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004543/0.5857, allocations: 3.243 MB / 1.217 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.5857, allocations: 0 / 1.217 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.913e-06/0.5857, allocations: 4 kB / 1.217 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.85e-05/0.5858, allocations: 0 / 1.217 GB, free: 1.719 MB / 0.9669 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.004663/0.5905, allocations: 2.554 MB / 1.22 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5905, allocations: 12.03 kB / 1.22 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008523/0.5914, allocations: 300.9 kB / 1.22 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005453/0.5968, allocations: 4.506 MB / 1.225 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.597, allocations: 130.4 kB / 1.225 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002685/0.5973, allocations: 188 kB / 1.225 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.5997, allocations: 1.43 MB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.5997, allocations: 3.984 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.5998, allocations: 55.89 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.5999, allocations: 36 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.6022, allocations: 1.5 MB / 1.228 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/0.6132, allocations: 7.507 MB / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.6152, allocations: 1.238 MB / 1.236 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008699/0.6161, allocations: 0.7028 MB / 1.237 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.072e-05/0.6162, allocations: 32.95 kB / 1.237 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.6173, allocations: 0.7624 MB / 1.238 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=118): time 5.1e-06/0.6174, allocations: 0 / 1.238 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of matching and sorting (n=118): time 0.003579/0.6209, allocations: 2.176 MB / 1.24 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002146/0.6212, allocations: 338.5 kB / 1.24 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009801/0.631, allocations: 7.396 MB / 1.247 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004918/0.6315, allocations: 69.7 kB / 1.248 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007888/0.6323, allocations: 0.7921 MB / 1.248 GB, free: 1.5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.6327, allocations: 382.4 kB / 1.249 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.6328, allocations: 55.94 kB / 1.249 GB, free: 1.066 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002021/0.633, allocations: 419 kB / 1.249 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.6727/1.306, allocations: 4.463 MB / 1.254 GB, free: 187 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005492/1.311, allocations: 5.213 MB / 1.259 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007492/1.319, allocations: 4.889 MB / 1.263 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-05/1.319, allocations: 6.594 kB / 1.263 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01451/1.333, allocations: 10.2 MB / 1.273 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004222/1.334, allocations: 192.8 kB / 1.274 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.336e-05/1.334, allocations: 22.5 kB / 1.274 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001167/1.334, allocations: 38.78 kB / 1.274 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/1.336, allocations: 0.5134 MB / 1.274 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-05/1.337, allocations: 46.81 kB / 1.274 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/1.339, allocations: 313 kB / 1.274 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003887/1.339, allocations: 121.8 kB / 1.275 GB, free: 185.6 MB / 0.9981 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.002005/1.341, allocations: 1.255 MB / 1.276 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/1.342, allocations: 178.7 kB / 1.276 GB, free: 185.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004235/1.346, allocations: 2.295 MB / 1.278 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/1.346, allocations: 12.94 kB / 1.278 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/1.346, allocations: 0 / 1.278 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/1.346, allocations: 9.203 kB / 1.278 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/1.349, allocations: 1.481 MB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/1.349, allocations: 0.5625 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006943/1.35, allocations: 162 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/1.35, allocations: 7.406 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/1.35, allocations: 40.34 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/1.35, allocations: 3.844 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.35, allocations: 0.5156 kB / 1.28 GB, free: 184 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/1.353, allocations: 2.175 MB / 1.282 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008428/1.354, allocations: 463.5 kB / 1.282 GB, free: 183 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/1.354, allocations: 30.62 kB / 1.282 GB, free: 183 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007959/1.355, allocations: 99.53 kB / 1.283 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/1.355, allocations: 87.62 kB / 1.283 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/1.355, allocations: 49.75 kB / 1.283 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004157/1.36, allocations: 4.648 MB / 1.287 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.41e-07/1.36, allocations: 0 / 1.287 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00358/1.363, allocations: 1.055 MB / 1.288 GB, free: 178.3 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 (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.002512/1.366, allocations: 0.9518 MB / 1.289 GB, free: 177.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006918/1.373, allocations: 7.442 MB / 1.296 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.373, allocations: 0 / 1.296 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001963/1.375, allocations: 2.016 MB / 1.298 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/1.377, allocations: 343.9 kB / 1.299 GB, free: 168.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/1.387, allocations: 9.35 MB / 1.308 GB, free: 160 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]