Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.818/4.818, allocations: 0.5623 GB / 0.5769 GB, free: 3.336 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002383/0.002383, allocations: 361.1 kB / 0.6441 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.056/4.056, allocations: 410.7 MB / 1.112 GB, free: 5.953 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001789/0.001789, allocations: 184.3 kB / 1.225 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0007413/0.0007416, allocations: 16 kB / 1.348 GB, free: 8.16 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6054/0.6062, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.AbsorbedRadiationElectrochromic): time 0.005872/0.6121, allocations: 5.028 MB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.1557/0.7679, allocations: 140.1 MB / 1.602 GB, free: 139.2 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.7695, allocations: 23.88 kB / 1.602 GB, free: 139.2 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.004603/0.7741, allocations: 1.436 MB / 1.604 GB, free: 137.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.00226/0.7764, allocations: 0.5909 MB / 1.604 GB, free: 137.1 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.002502/0.7789, allocations: 0.7769 MB / 1.605 GB, free: 136.4 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.002873/0.7818, allocations: 2.802 MB / 1.608 GB, free: 133.6 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.7831, allocations: 0.6961 MB / 1.609 GB, free: 132.9 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.7845, allocations: 0.8441 MB / 1.609 GB, free: 132 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.7857, allocations: 0.7508 MB / 1.61 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.0002308/0.786, allocations: 44 kB / 1.61 GB, free: 131.2 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.7892, allocations: 1.732 MB / 1.612 GB, free: 129.5 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.7908, allocations: 1.771 MB / 1.614 GB, free: 127.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0004957/0.7913, allocations: 364.6 kB / 1.614 GB, free: 127.4 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.004093/0.7954, allocations: 3.005 MB / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.228e-06/0.7955, allocations: 0 / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.332e-06/0.7955, allocations: 0 / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.267e-05/0.7955, allocations: 3.938 kB / 1.617 GB, free: 124.4 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.004381/0.7999, allocations: 2.387 MB / 1.619 GB, free: 121.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.8, allocations: 11.62 kB / 1.619 GB, free: 121.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.8012, allocations: 297 kB / 1.62 GB, free: 121.6 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005483/0.8067, allocations: 4.458 MB / 1.624 GB, free: 117.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.8068, allocations: 126.2 kB / 1.624 GB, free: 117 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002656/0.8071, allocations: 172 kB / 1.624 GB, free: 116.8 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00252/0.8096, allocations: 1.333 MB / 1.625 GB, free: 115.4 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.8097, allocations: 3.938 kB / 1.625 GB, free: 115.4 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.8098, allocations: 48 kB / 1.626 GB, free: 115.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.8099, allocations: 28 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002635/0.8125, allocations: 1.413 MB / 1.627 GB, free: 113.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.8234, allocations: 6.754 MB / 1.634 GB, free: 107.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.8256, allocations: 1.122 MB / 1.635 GB, free: 106 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.8266, allocations: 0.6595 MB / 1.635 GB, free: 105.3 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.473e-05/0.8268, allocations: 32.75 kB / 1.635 GB, free: 105.3 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.8279, allocations: 0.6662 MB / 1.636 GB, free: 104.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=106): time 4.779e-06/0.828, allocations: 0 / 1.636 GB, free: 104.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=106): time 0.003635/0.8316, allocations: 1.998 MB / 1.638 GB, free: 102.6 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/0.8318, allocations: 342.2 kB / 1.638 GB, free: 102.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/0.8434, allocations: 7.322 MB / 1.645 GB, free: 94.88 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0002731/0.8437, allocations: 73.7 kB / 1.645 GB, free: 94.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007123/0.8445, allocations: 0.7448 MB / 1.646 GB, free: 94.05 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.8448, allocations: 362.8 kB / 1.647 GB, free: 93.69 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.8449, allocations: 44 kB / 1.647 GB, free: 93.64 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.8451, allocations: 414.7 kB / 1.647 GB, free: 93.23 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004398/0.8495, allocations: 4.425 MB / 1.651 GB, free: 88.8 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00509/0.8547, allocations: 5.166 MB / 1.656 GB, free: 83.32 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004984/0.8597, allocations: 4.849 MB / 1.661 GB, free: 78.46 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/0.8598, allocations: 4 kB / 1.661 GB, free: 78.46 MB / 0.8542 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01115/0.8709, allocations: 10.1 MB / 1.671 GB, free: 68.34 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.8712, allocations: 185.6 kB / 1.671 GB, free: 68.15 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-05/0.8712, allocations: 28 kB / 1.671 GB, free: 68.12 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.394e-05/0.8713, allocations: 40 kB / 1.671 GB, free: 68.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.8735, allocations: 495.1 kB / 1.672 GB, free: 67.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-05/0.8736, allocations: 47.86 kB / 1.672 GB, free: 67.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.8753, allocations: 277.2 kB / 1.672 GB, free: 67.28 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/0.8756, allocations: 124 kB / 1.672 GB, free: 67.16 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.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 (274): * Single equations (assignments): 273 * 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.001581/0.8772, allocations: 1.231 MB / 1.673 GB, free: 65.91 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.8775, allocations: 169.7 kB / 1.673 GB, free: 65.75 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003808/0.8813, allocations: 2.151 MB / 1.676 GB, free: 63.58 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.8814, allocations: 12 kB / 1.676 GB, free: 63.57 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.491e-06/0.8814, allocations: 3.984 kB / 1.676 GB, free: 63.57 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.8814, allocations: 3.984 kB / 1.676 GB, free: 63.56 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005721/0.8871, allocations: 3.615 MB / 1.679 GB, free: 59.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.912e-06/0.8872, allocations: 0 / 1.679 GB, free: 59.88 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00077/0.888, allocations: 159.8 kB / 1.679 GB, free: 59.73 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.355e-06/0.888, allocations: 0 / 1.679 GB, free: 59.73 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.069e-05/0.8881, allocations: 31.98 kB / 1.679 GB, free: 59.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.949e-06/0.8881, allocations: 4 kB / 1.679 GB, free: 59.69 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.973e-06/0.8881, allocations: 7.891 kB / 1.679 GB, free: 59.68 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.8914, allocations: 2.096 MB / 1.681 GB, free: 57.57 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000842/0.8923, allocations: 440.6 kB / 1.682 GB, free: 57.12 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.8925, allocations: 20 kB / 1.682 GB, free: 57.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009224/0.8935, allocations: 79.19 kB / 1.682 GB, free: 57.02 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.8937, allocations: 72.86 kB / 1.682 GB, free: 56.95 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.8938, allocations: 39.98 kB / 1.682 GB, free: 56.91 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.00449/0.8983, allocations: 4.607 MB / 1.686 GB, free: 52.32 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9.2e-07/0.8983, allocations: 4 kB / 1.686 GB, free: 52.31 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002767/0.9011, allocations: 0.9908 MB / 1.687 GB, free: 51.32 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.002817/0.904, allocations: 0.8856 MB / 1.688 GB, free: 50.65 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.007577/0.9116, allocations: 7.325 MB / 1.695 GB, free: 43.32 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.9116, allocations: 0 / 1.695 GB, free: 43.32 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.002249/0.9139, allocations: 1.962 MB / 1.697 GB, free: 41.34 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.9157, allocations: 308.6 kB / 1.698 GB, free: 41.04 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.9279, allocations: 9.13 MB / 1.707 GB, free: 31.89 MB / 0.8542 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]