Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.0008368/0.0008367, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0009038/0.0009038, allocations: 168.7 kB / 15.95 MB, free: 204 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.416/1.416, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.823/2.823, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 8.844 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3509, allocations: 159.6 MB / 1.058 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.ElectrochromicWindow): time 0.01497/0.3659, allocations: 13.02 MB / 1.071 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1834/0.5493, allocations: 145.4 MB / 1.213 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.5531, allocations: 55.69 kB / 1.213 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.006827/0.5599, allocations: 2.019 MB / 1.215 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005133/0.5651, allocations: 1.361 MB / 1.216 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005291/0.5704, allocations: 1.612 MB / 1.218 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.008921/0.5793, allocations: 6.517 MB / 1.224 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002952/0.5823, allocations: 1.392 MB / 1.225 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003988/0.5863, allocations: 1.848 MB / 1.227 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003711/0.5901, allocations: 1.825 MB / 1.229 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000752/0.5909, allocations: 124 kB / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005492/0.5964, allocations: 2.329 MB / 1.231 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.004527/0.6009, allocations: 4.471 MB / 1.236 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.6028, allocations: 0.8116 MB / 1.236 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009867/0.6127, allocations: 6.286 MB / 1.243 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.6127, allocations: 0 / 1.243 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.325e-06/0.6128, allocations: 0 / 1.243 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002992/0.6131, allocations: 0 / 1.243 GB, free: 7.789 MB / 0.9981 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.01192/0.625, allocations: 4.776 MB / 1.247 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.6251, allocations: 8.031 kB / 1.247 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.6399, allocations: 2.554 MB / 1.25 GB, free: 364 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6373/1.277, allocations: 14.62 MB / 1.264 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004888/1.278, allocations: 224.8 kB / 1.264 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/1.279, allocations: 298.6 kB / 1.265 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/1.294, allocations: 3.572 MB / 1.268 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/1.294, allocations: 5.156 kB / 1.268 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006147/1.295, allocations: 93.75 kB / 1.268 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/1.295, allocations: 56.56 kB / 1.268 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01329/1.308, allocations: 3.412 MB / 1.272 GB, free: 182.3 MB / 0.9981 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.03551/1.344, allocations: 22.32 MB / 1.293 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006472/1.35, allocations: 2.899 MB / 1.296 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003705/1.354, allocations: 1.822 MB / 1.298 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004962/1.355, allocations: 434.1 kB / 1.298 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00403/1.359, allocations: 2.082 MB / 1.3 GB, free: 165 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=185): time 5.581e-06/1.359, allocations: 0 / 1.3 GB, free: 165 MB / 0.9981 GB Notification: Performance of matching and sorting (n=185): time 0.01925/1.378, allocations: 7.527 MB / 1.308 GB, free: 157.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/1.378, allocations: 426.3 kB / 1.308 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02824/1.406, allocations: 21.54 MB / 1.329 GB, free: 135.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001228/1.408, allocations: 101.6 kB / 1.329 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00251/1.41, allocations: 1.64 MB / 1.331 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001117/1.411, allocations: 0.6073 MB / 1.331 GB, free: 133 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009083/1.412, allocations: 76 kB / 1.332 GB, free: 132.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0003915/1.413, allocations: 474.2 kB / 1.332 GB, free: 132.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01283/1.426, allocations: 13.44 MB / 1.345 GB, free: 119 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01413/1.44, allocations: 14.59 MB / 1.359 GB, free: 104 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/1.453, allocations: 13.83 MB / 1.373 GB, free: 90.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.828e-05/1.453, allocations: 8 kB / 1.373 GB, free: 90.09 MB / 0.9981 GB Notification: Performance of matching and sorting (n=493) (initialization): time 0.03412/1.488, allocations: 29.66 MB / 1.402 GB, free: 60.37 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008938/1.488, allocations: 1.258 MB / 1.403 GB, free: 58.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01525/1.504, allocations: 6.46 MB / 1.409 GB, free: 52.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03965/1.543, allocations: 5.475 MB / 1.415 GB, free: 46.62 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0051/1.549, allocations: 0.9634 MB / 1.416 GB, free: 45.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007262/1.556, allocations: 6.377 MB / 1.422 GB, free: 38.86 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005949/1.562, allocations: 0.642 MB / 1.423 GB, free: 38.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001237/1.563, allocations: 219.4 kB / 1.423 GB, free: 38.01 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/1.563, allocations: 4.781 kB / 1.423 GB, free: 38.01 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03112/1.594, allocations: 29.3 MB / 1.451 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01482/1.609, allocations: 6.294 MB / 1.457 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/1.611, allocations: 0.5486 MB / 1.458 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005279/1.616, allocations: 1.01 MB / 1.459 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00953/1.626, allocations: 8.359 MB / 1.467 GB, free: 7.832 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.632, allocations: 0.5591 MB / 1.468 GB, free: 7.277 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/1.633, allocations: 212.7 kB / 1.468 GB, free: 7.074 MB / 1.014 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.00573/1.639, allocations: 2.854 MB / 1.471 GB, free: 4.207 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00154/1.64, allocations: 359.2 kB / 1.471 GB, free: 3.852 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01599/1.656, allocations: 5.731 MB / 1.477 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.867e-05/1.656, allocations: 23.73 kB / 1.477 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/1.656, allocations: 4 kB / 1.477 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.332e-05/1.657, allocations: 11.97 kB / 1.477 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006915/1.663, allocations: 3.593 MB / 1.48 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.03212/1.696, allocations: 6.274 MB / 1.486 GB, free: 4.062 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002407/1.698, allocations: 339.5 kB / 1.487 GB, free: 3.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04925/1.747, allocations: 7.813 MB / 1.494 GB, free: 11.9 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000702/1.748, allocations: 63.95 kB / 1.494 GB, free: 11.84 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008036/1.756, allocations: 6.359 MB / 1.501 GB, free: 5.051 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.756, allocations: 4.156 kB / 1.501 GB, free: 5.047 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.769, allocations: 4.954 MB / 1.505 GB, free: 52 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003001/1.772, allocations: 0.9133 MB / 1.506 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001272/1.773, allocations: 43.98 kB / 1.506 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003407/1.777, allocations: 279.7 kB / 1.507 GB, free: 14.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004399/1.777, allocations: 137.8 kB / 1.507 GB, free: 14.67 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003206/1.778, allocations: 92.64 kB / 1.507 GB, free: 14.58 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.01325/1.791, allocations: 13.44 MB / 1.52 GB, free: 1.129 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.713e-06/1.791, allocations: 0 / 1.52 GB, free: 1.129 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.00982/1.801, allocations: 2.491 MB / 1.522 GB, free: 14.73 MB / 1.076 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.003388/1.804, allocations: 1.078 MB / 1.523 GB, free: 13.98 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.04079/1.845, allocations: 34.53 MB / 1.557 GB, free: 11.37 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.845, allocations: 4.062 kB / 1.557 GB, free: 11.37 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.006533/1.852, allocations: 3.55 MB / 1.561 GB, free: 7.777 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005208/1.857, allocations: 0.6646 MB / 1.561 GB, free: 7.109 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03748/1.894, allocations: 24.02 MB / 1.585 GB, free: 15.06 MB / 1.139 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]