Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.778/4.778, allocations: 0.5623 GB / 0.5769 GB, free: 3.348 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.002517/0.002516, allocations: 355.8 kB / 0.644 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 3.973/3.973, 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.001745/0.001745, allocations: 175.2 kB / 1.225 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005114/0.0005117, allocations: 16 kB / 1.348 GB, free: 8.273 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6259/0.6265, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.006617/0.6331, allocations: 6.147 MB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.1395/0.7727, allocations: 140.9 MB / 1.604 GB, free: 137.2 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.7743, allocations: 27.81 kB / 1.604 GB, free: 137.2 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.004555/0.7788, allocations: 1.533 MB / 1.606 GB, free: 135.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.002885/0.7817, allocations: 0.9285 MB / 1.607 GB, free: 134.8 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.00314/0.7849, allocations: 1.015 MB / 1.608 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.004241/0.7892, allocations: 4.485 MB / 1.612 GB, free: 129.3 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.7907, allocations: 0.9641 MB / 1.613 GB, free: 128.3 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.7927, allocations: 1.225 MB / 1.614 GB, free: 127.1 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.7946, allocations: 1.202 MB / 1.615 GB, free: 125.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.0003974/0.795, allocations: 64 kB / 1.616 GB, free: 125.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003795/0.7989, allocations: 1.966 MB / 1.617 GB, free: 123.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.003424/0.8023, allocations: 4.214 MB / 1.622 GB, free: 119.6 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0007518/0.8031, allocations: 0.5313 MB / 1.622 GB, free: 119.1 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.005371/0.8085, allocations: 4.517 MB / 1.627 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.276e-06/0.8085, allocations: 0 / 1.627 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.121e-06/0.8085, allocations: 7.938 kB / 1.627 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.96e-05/0.8086, allocations: 0 / 1.627 GB, free: 114.6 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.005995/0.8146, allocations: 3.36 MB / 1.63 GB, free: 111.1 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.8147, allocations: 11.62 kB / 1.63 GB, free: 111.1 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.8162, allocations: 427.5 kB / 1.63 GB, free: 110.7 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.829, allocations: 12.17 MB / 1.642 GB, free: 98.45 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.8292, allocations: 162.9 kB / 1.642 GB, free: 98.29 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004241/0.8296, allocations: 227.9 kB / 1.642 GB, free: 98.07 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003799/0.8334, allocations: 2.014 MB / 1.644 GB, free: 95.99 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.741e-05/0.8335, allocations: 0 / 1.644 GB, free: 95.99 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/0.8337, allocations: 68 kB / 1.645 GB, free: 95.92 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.8337, allocations: 36 kB / 1.645 GB, free: 95.89 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004043/0.8378, allocations: 2.13 MB / 1.647 GB, free: 93.75 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.8579, allocations: 14.88 MB / 1.661 GB, free: 78.74 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/0.8608, allocations: 1.479 MB / 1.663 GB, free: 77.26 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.8622, allocations: 0.8706 MB / 1.663 GB, free: 76.38 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.8624, allocations: 45.02 kB / 1.663 GB, free: 76.34 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001706/0.8641, allocations: 1.012 MB / 1.664 GB, free: 75.32 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=126): time 4.166e-06/0.8641, allocations: 4 kB / 1.664 GB, free: 75.31 MB / 0.8542 GB Notification: Performance of matching and sorting (n=126): time 0.006428/0.8705, allocations: 2.883 MB / 1.667 GB, free: 72.39 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001925/0.8708, allocations: 362.5 kB / 1.668 GB, free: 71.99 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03608/0.9069, allocations: 20.53 MB / 1.688 GB, free: 51.43 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0003925/0.9073, allocations: 81.7 kB / 1.688 GB, free: 51.35 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.9085, allocations: 1.139 MB / 1.689 GB, free: 50.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004096/0.909, allocations: 425.9 kB / 1.689 GB, free: 49.78 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.9092, allocations: 64 kB / 1.689 GB, free: 49.71 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002003/0.9094, allocations: 452.7 kB / 1.69 GB, free: 49.27 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01006/0.9195, allocations: 12.09 MB / 1.702 GB, free: 37.17 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/0.9306, allocations: 13.08 MB / 1.714 GB, free: 23.66 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.9413, allocations: 12.63 MB / 1.727 GB, free: 11.03 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.689e-05/0.9414, allocations: 8 kB / 1.727 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.5457/1.487, allocations: 25.89 MB / 1.752 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003478/1.487, allocations: 204.3 kB / 1.752 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.824e-05/1.488, allocations: 30.22 kB / 1.752 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008232/1.488, allocations: 129.9 kB / 1.752 GB, free: 265.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003551/1.492, allocations: 0.6967 MB / 1.753 GB, free: 265.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/1.494, allocations: 1.571 MB / 1.755 GB, free: 263.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/1.497, allocations: 376.7 kB / 1.755 GB, free: 263.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006309/1.498, allocations: 167.3 kB / 1.755 GB, free: 263.2 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (380): * Single equations (assignments): 378 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.003321/1.501, allocations: 2.506 MB / 1.758 GB, free: 260.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/1.502, allocations: 250.1 kB / 1.758 GB, free: 260.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005616/1.507, allocations: 2.844 MB / 1.761 GB, free: 258.2 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/1.507, allocations: 12 kB / 1.761 GB, free: 258.2 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.378e-06/1.507, allocations: 0 / 1.761 GB, free: 258.2 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.507, allocations: 9.766 kB / 1.761 GB, free: 258.2 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008517/1.516, allocations: 4.876 MB / 1.765 GB, free: 254.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.248e-06/1.516, allocations: 0 / 1.765 GB, free: 254.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.517, allocations: 201.7 kB / 1.766 GB, free: 253.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005703/1.518, allocations: 84.86 kB / 1.766 GB, free: 253.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/1.518, allocations: 35.98 kB / 1.766 GB, free: 253.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/1.52, allocations: 1.544 MB / 1.767 GB, free: 252.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.4e-06/1.52, allocations: 10.81 kB / 1.767 GB, free: 252.1 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/1.525, allocations: 2.744 MB / 1.77 GB, free: 249.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/1.526, allocations: 0.6023 MB / 1.77 GB, free: 248.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005375/1.527, allocations: 26.06 kB / 1.77 GB, free: 248.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/1.528, allocations: 103.3 kB / 1.771 GB, free: 248.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/1.529, allocations: 88.81 kB / 1.771 GB, free: 248.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/1.529, allocations: 64.92 kB / 1.771 GB, free: 248.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.011/1.54, allocations: 12.75 MB / 1.783 GB, free: 235.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.12e-06/1.54, allocations: 0.8125 kB / 1.783 GB, free: 235.6 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00388/1.544, allocations: 1.234 MB / 1.784 GB, free: 234.5 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003138/1.547, allocations: 0.9547 MB / 1.785 GB, free: 233.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01411/1.561, allocations: 15.61 MB / 1.801 GB, free: 218.3 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.103e-06/1.561, allocations: 0 / 1.801 GB, free: 218.3 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003027/1.564, allocations: 2.406 MB / 1.803 GB, free: 215.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/1.567, allocations: 425.5 kB / 1.803 GB, free: 215.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02707/1.594, allocations: 21.08 MB / 1.824 GB, free: 194.6 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]