Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001028/0.001028, allocations: 91.61 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.001036/0.001036, 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.538/1.538, allocations: 223.3 MB / 240 MB, free: 5.41 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.705/2.705, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004002, allocations: 8 kB / 0.8722 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8365/0.8369, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.00803/0.845, allocations: 6.402 MB / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.176/1.021, allocations: 140.7 MB / 1.166 GB, free: 12.5 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/1.023, allocations: 23.81 kB / 1.166 GB, free: 12.48 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004519/1.027, allocations: 1.534 MB / 1.168 GB, free: 10.94 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002438/1.03, allocations: 0.715 MB / 1.168 GB, free: 10.23 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002345/1.032, allocations: 0.7836 MB / 1.169 GB, free: 9.449 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0038/1.036, allocations: 3.203 MB / 1.172 GB, free: 6.238 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/1.037, allocations: 0.688 MB / 1.173 GB, free: 5.52 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/1.039, allocations: 0.9768 MB / 1.174 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/1.04, allocations: 0.8482 MB / 1.175 GB, free: 3.688 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001473/1.041, allocations: 48 kB / 1.175 GB, free: 3.641 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003721/1.044, allocations: 1.822 MB / 1.176 GB, free: 1.816 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001671/1.046, allocations: 1.786 MB / 1.178 GB, free: 28 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0006369/1.047, allocations: 408.5 kB / 1.179 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.005079/1.052, allocations: 3.242 MB / 1.182 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.052, allocations: 0 / 1.182 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.595e-06/1.052, allocations: 0 / 1.182 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.054e-05/1.052, allocations: 0 / 1.182 GB, free: 12.37 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: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.005517/1.057, allocations: 2.553 MB / 1.184 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/1.057, allocations: 12.56 kB / 1.184 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009148/1.058, allocations: 312.8 kB / 1.185 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005886/1.064, allocations: 4.51 MB / 1.189 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/1.064, allocations: 130.4 kB / 1.189 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002696/1.065, allocations: 188 kB / 1.189 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/1.067, allocations: 1.43 MB / 1.191 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/1.067, allocations: 3.938 kB / 1.191 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/1.068, allocations: 52 kB / 1.191 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/1.068, allocations: 35.95 kB / 1.191 GB, free: 2.977 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002386/1.07, allocations: 1.5 MB / 1.192 GB, free: 1.469 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01223/1.082, allocations: 7.509 MB / 1.2 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/1.085, allocations: 1.242 MB / 1.201 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009729/1.086, allocations: 0.6949 MB / 1.201 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.264e-05/1.086, allocations: 37.17 kB / 1.201 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/1.087, allocations: 0.7585 MB / 1.202 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=118): time 3.626e-06/1.087, allocations: 3.938 kB / 1.202 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of matching and sorting (n=118): time 0.003648/1.09, allocations: 2.164 MB / 1.204 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/1.091, allocations: 346.5 kB / 1.205 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/1.101, allocations: 7.396 MB / 1.212 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003625/1.101, allocations: 73.7 kB / 1.212 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000814/1.102, allocations: 0.7921 MB / 1.213 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/1.102, allocations: 386.4 kB / 1.213 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/1.103, allocations: 51.94 kB / 1.213 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002092/1.103, allocations: 419 kB / 1.214 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004249/1.107, allocations: 4.464 MB / 1.218 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004616/1.112, allocations: 5.222 MB / 1.223 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004715/1.116, allocations: 4.892 MB / 1.228 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.748e-05/1.116, allocations: 4 kB / 1.228 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01042/1.127, allocations: 10.21 MB / 1.238 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001938/1.127, allocations: 181.6 kB / 1.238 GB, free: 1.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.577e-05/1.127, allocations: 28.03 kB / 1.238 GB, free: 1.949 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.698e-05/1.127, allocations: 36 kB / 1.238 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/1.129, allocations: 0.507 MB / 1.238 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.097e-05/1.129, allocations: 51.75 kB / 1.239 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/1.131, allocations: 309 kB / 1.239 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/1.131, allocations: 128 kB / 1.239 GB, free: 0.9258 MB / 0.9825 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.001551/1.132, allocations: 1.26 MB / 1.24 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/1.133, allocations: 177.6 kB / 1.24 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/1.136, allocations: 2.288 MB / 1.243 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/1.136, allocations: 12 kB / 1.243 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.136, allocations: 4 kB / 1.243 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/1.136, allocations: 7.938 kB / 1.243 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/1.138, allocations: 1.484 MB / 1.244 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.138, allocations: 0 / 1.244 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/1.139, allocations: 155.8 kB / 1.244 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.166e-05/1.139, allocations: 7.984 kB / 1.244 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.232e-05/1.139, allocations: 35.98 kB / 1.244 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/1.139, allocations: 4 kB / 1.244 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.139, allocations: 7.922 kB / 1.244 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002952/1.142, allocations: 2.175 MB / 1.246 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006833/1.143, allocations: 470 kB / 1.247 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/1.143, allocations: 31.98 kB / 1.247 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000782/1.144, allocations: 91.92 kB / 1.247 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/1.144, allocations: 88.88 kB / 1.247 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/1.144, allocations: 51.97 kB / 1.247 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004299/1.148, allocations: 4.648 MB / 1.252 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.51e-07/1.148, allocations: 0 / 1.252 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002958/1.151, allocations: 1.049 MB / 1.253 GB, free: 2.73 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.002323/1.153, allocations: 0.9513 MB / 1.254 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5092/1.663, allocations: 7.44 MB / 1.261 GB, free: 227.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.663, allocations: 4 kB / 1.261 GB, free: 227.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002711/1.665, allocations: 2.015 MB / 1.263 GB, free: 226.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/1.667, allocations: 334.5 kB / 1.263 GB, free: 226.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/1.683, allocations: 9.361 MB / 1.272 GB, free: 222.8 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]