Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow.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.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uWin.y|window.glaUns.glass_a.T|window.glaUns.glass_b.T|extCon.radOut.TRad",fileNamePrefix="Buildings_10_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") translateModel(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uWin.y|window.glaUns.glass_a.T|window.glaUns.glass_b.T|extCon.radOut.TRad",fileNamePrefix="Buildings_10_Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 92 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.001248/0.001248, 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.529/1.529, allocations: 223.3 MB / 240 MB, free: 5.434 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.714/2.714, allocations: 437.7 MB / 0.7117 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.000392, allocations: 8 kB / 0.8722 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9395/0.9399, allocations: 153.8 MB / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.01516/0.9551, allocations: 13.05 MB / 1.035 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1912/1.146, allocations: 145.3 MB / 1.177 GB, free: 1.25 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004426/1.151, allocations: 55.69 kB / 1.177 GB, free: 1.195 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.007048/1.158, allocations: 2.019 MB / 1.179 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.007102/1.165, allocations: 1.366 MB / 1.18 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006824/1.172, allocations: 1.612 MB / 1.182 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.01103/1.183, allocations: 6.509 MB / 1.188 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003893/1.187, allocations: 1.396 MB / 1.19 GB, free: 4.223 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/1.191, allocations: 1.852 MB / 1.192 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00392/1.195, allocations: 1.821 MB / 1.193 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.001005/1.196, allocations: 124 kB / 1.193 GB, free: 424 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006961/1.203, allocations: 2.321 MB / 1.196 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.006563/1.21, allocations: 4.479 MB / 1.2 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.002474/1.212, allocations: 0.8079 MB / 1.201 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01232/1.225, allocations: 6.294 MB / 1.207 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/1.225, allocations: 4 kB / 1.207 GB, free: 2.477 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.727e-06/1.225, allocations: 0 / 1.207 GB, free: 2.477 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004647/1.225, allocations: 0 / 1.207 GB, free: 2.477 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 593 * Number of variables: 593 Notification: Performance of Generate backend data structure: time 0.01396/1.239, allocations: 4.768 MB / 1.212 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/1.239, allocations: 12.56 kB / 1.212 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/1.255, allocations: 2.55 MB / 1.214 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02842/1.284, allocations: 14.63 MB / 1.228 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/1.284, allocations: 224.4 kB / 1.229 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/1.285, allocations: 303.9 kB / 1.229 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/1.295, allocations: 3.566 MB / 1.232 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.382e-05/1.296, allocations: 0 / 1.232 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005398/1.296, allocations: 100 kB / 1.233 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.938e-05/1.296, allocations: 56 kB / 1.233 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008371/1.305, allocations: 3.408 MB / 1.236 GB, free: 4.535 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7286/2.033, allocations: 22.32 MB / 1.258 GB, free: 220.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008125/2.041, allocations: 2.891 MB / 1.261 GB, free: 219.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004991/2.046, allocations: 1.818 MB / 1.262 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005732/2.047, allocations: 423.4 kB / 1.263 GB, free: 218.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00633/2.053, allocations: 2.087 MB / 1.265 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=185): time 4.929e-06/2.053, allocations: 0 / 1.265 GB, free: 217.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=185): time 0.02522/2.079, allocations: 7.537 MB / 1.272 GB, free: 215.8 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000343/2.079, allocations: 425.6 kB / 1.273 GB, free: 215.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0309/2.11, allocations: 21.54 MB / 1.294 GB, free: 204.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008778/2.111, allocations: 89.7 kB / 1.294 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001843/2.113, allocations: 1.645 MB / 1.295 GB, free: 203.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006753/2.113, allocations: 0.6095 MB / 1.296 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003182/2.114, allocations: 76 kB / 1.296 GB, free: 202.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000176/2.114, allocations: 478.2 kB / 1.296 GB, free: 202.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/2.125, allocations: 13.43 MB / 1.31 GB, free: 189 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0127/2.138, allocations: 14.6 MB / 1.324 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/2.15, allocations: 13.83 MB / 1.337 GB, free: 160 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-05/2.15, allocations: 8 kB / 1.337 GB, free: 160 MB / 0.9981 GB Notification: Performance of matching and sorting (n=493) (initialization): time 0.03054/2.181, allocations: 29.65 MB / 1.366 GB, free: 130.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006243/2.181, allocations: 1.256 MB / 1.367 GB, free: 128.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01338/2.195, allocations: 6.467 MB / 1.374 GB, free: 122.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03968/2.234, allocations: 5.475 MB / 1.379 GB, free: 116.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004969/2.239, allocations: 0.9578 MB / 1.38 GB, free: 115.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006384/2.246, allocations: 6.388 MB / 1.386 GB, free: 108.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005484/2.251, allocations: 0.6467 MB / 1.387 GB, free: 108.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008193/2.252, allocations: 214.6 kB / 1.387 GB, free: 108 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/2.252, allocations: 5.25 kB / 1.387 GB, free: 108 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02758/2.28, allocations: 29.31 MB / 1.416 GB, free: 78.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01311/2.293, allocations: 6.294 MB / 1.422 GB, free: 72.27 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/2.295, allocations: 0.5477 MB / 1.422 GB, free: 71.71 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005672/2.3, allocations: 1.013 MB / 1.423 GB, free: 70.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007169/2.307, allocations: 8.34 MB / 1.432 GB, free: 61.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005618/2.313, allocations: 0.5503 MB / 1.432 GB, free: 61.28 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/2.314, allocations: 214.9 kB / 1.432 GB, free: 61.07 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (429): * Single equations (assignments): 424 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 2 {6 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.003921/2.318, allocations: 2.861 MB / 1.435 GB, free: 58.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009868/2.319, allocations: 370.8 kB / 1.435 GB, free: 57.84 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/2.332, allocations: 5.735 MB / 1.441 GB, free: 52.07 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/2.332, allocations: 19.95 kB / 1.441 GB, free: 52.05 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/2.332, allocations: 4 kB / 1.441 GB, free: 52.05 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.095e-05/2.332, allocations: 11.97 kB / 1.441 GB, free: 52.04 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006293/2.338, allocations: 3.578 MB / 1.445 GB, free: 48.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.02924/2.367, allocations: 6.271 MB / 1.451 GB, free: 42.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/2.369, allocations: 347.5 kB / 1.451 GB, free: 41.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04593/2.415, allocations: 7.818 MB / 1.459 GB, free: 33.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00059/2.416, allocations: 63.95 kB / 1.459 GB, free: 33.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/2.422, allocations: 6.346 MB / 1.465 GB, free: 27.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.422, allocations: 0 / 1.465 GB, free: 27.07 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/2.432, allocations: 4.965 MB / 1.47 GB, free: 22.06 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002428/2.435, allocations: 0.9133 MB / 1.471 GB, free: 21.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004584/2.435, allocations: 40 kB / 1.471 GB, free: 21.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/2.438, allocations: 275.6 kB / 1.471 GB, free: 20.81 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/2.438, allocations: 137.7 kB / 1.471 GB, free: 20.68 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/2.438, allocations: 99.94 kB / 1.471 GB, free: 20.58 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0103/2.449, allocations: 13.43 MB / 1.484 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.71e-07/2.449, allocations: 0 / 1.484 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01002/2.459, allocations: 2.487 MB / 1.487 GB, free: 4.746 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 2 {5 27,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003234/2.462, allocations: 1.076 MB / 1.488 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.04116/2.503, allocations: 34.53 MB / 1.522 GB, free: 1.395 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/2.503, allocations: 4.938 kB / 1.522 GB, free: 1.391 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.006871/2.51, allocations: 3.551 MB / 1.525 GB, free: 13.8 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004088/2.514, allocations: 0.6593 MB / 1.526 GB, free: 13.14 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03683/2.551, allocations: 24.05 MB / 1.549 GB, free: 5.051 MB / 1.061 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]