Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") translateModel(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uSta.y|winRad.QAbsGlaUns_flow.1.|winRad.QAbsGlaUns_flow.2.",fileNamePrefix="Buildings_9_Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008751/0.0008754, 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.001043/0.001043, 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.402/1.402, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.9 MB / 0.666 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 8 kB / 0.8154 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8087/0.809, allocations: 142.4 MB / 0.9544 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.BaseClasses.Examples.WindowRadiationElectrochromic): time 0.00778/0.8169, allocations: 6.386 MB / 0.9607 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1865/1.003, allocations: 141.5 MB / 1.099 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001832/1.005, allocations: 31.81 kB / 1.099 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004968/1.01, allocations: 1.627 MB / 1.1 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003208/1.014, allocations: 0.9588 MB / 1.101 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003431/1.017, allocations: 1.061 MB / 1.102 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005963/1.023, allocations: 4.724 MB / 1.107 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/1.025, allocations: 1.012 MB / 1.108 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/1.028, allocations: 1.35 MB / 1.109 GB, free: 436 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002218/1.03, allocations: 1.265 MB / 1.111 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002712/1.03, allocations: 68 kB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004192/1.034, allocations: 2.052 MB / 1.113 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003654/1.038, allocations: 4.241 MB / 1.117 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0008155/1.039, allocations: 0.5585 MB / 1.117 GB, free: 8.223 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006126/1.045, allocations: 4.704 MB / 1.122 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.045, allocations: 0 / 1.122 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.478e-06/1.045, allocations: 0 / 1.122 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.178e-05/1.045, allocations: 3.938 kB / 1.122 GB, free: 3.504 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 0.006781/1.052, allocations: 3.512 MB / 1.125 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/1.052, allocations: 8.031 kB / 1.125 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/1.053, allocations: 439.4 kB / 1.126 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/1.065, allocations: 12.22 MB / 1.138 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/1.066, allocations: 171.1 kB / 1.138 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/1.066, allocations: 232 kB / 1.138 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003638/1.07, allocations: 2.123 MB / 1.14 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/1.07, allocations: 0 / 1.14 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/1.07, allocations: 72 kB / 1.14 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/1.07, allocations: 36 kB / 1.14 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/1.073, allocations: 2.213 MB / 1.142 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01923/1.093, allocations: 15.17 MB / 1.157 GB, free: 14.99 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/1.096, allocations: 1.616 MB / 1.159 GB, free: 13.37 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/1.097, allocations: 0.9142 MB / 1.16 GB, free: 12.46 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/1.097, allocations: 37.09 kB / 1.16 GB, free: 12.42 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001789/1.099, allocations: 1.112 MB / 1.161 GB, free: 11.29 MB / 0.92 GB Notification: Performance of pre-optimization done (n=138): time 3.226e-06/1.099, allocations: 0 / 1.161 GB, free: 11.29 MB / 0.92 GB Notification: Performance of matching and sorting (n=138): time 0.006014/1.105, allocations: 3.062 MB / 1.164 GB, free: 8.195 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002448/1.105, allocations: 370.5 kB / 1.164 GB, free: 7.781 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03211/1.137, allocations: 20.6 MB / 1.184 GB, free: 3.156 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0007428/1.138, allocations: 85.7 kB / 1.184 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.002147/1.14, allocations: 1.17 MB / 1.186 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008161/1.141, allocations: 461.4 kB / 1.186 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006808/1.142, allocations: 68 kB / 1.186 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0005443/1.142, allocations: 457 kB / 1.186 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01173/1.154, allocations: 12.14 MB / 1.198 GB, free: 4.766 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/1.167, allocations: 13.12 MB / 1.211 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/1.178, allocations: 12.67 MB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.984e-05/1.178, allocations: 8 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=427) (initialization): time 0.02657/1.205, allocations: 26.01 MB / 1.249 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002518/1.205, allocations: 203.8 kB / 1.249 GB, free: 304 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.059e-05/1.205, allocations: 35.98 kB / 1.249 GB, free: 268 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006758/1.206, allocations: 132.9 kB / 1.249 GB, free: 132 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6234/1.83, allocations: 0.7041 MB / 1.25 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/1.832, allocations: 1.572 MB / 1.252 GB, free: 280.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/1.835, allocations: 405.6 kB / 1.252 GB, free: 280.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008532/1.836, allocations: 171.9 kB / 1.252 GB, free: 280.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (396): * Single equations (assignments): 394 * 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.004441/1.841, allocations: 2.532 MB / 1.255 GB, free: 280.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005837/1.841, allocations: 264.5 kB / 1.255 GB, free: 280.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005963/1.847, allocations: 2.979 MB / 1.258 GB, free: 279.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/1.847, allocations: 13.12 kB / 1.258 GB, free: 279.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.847, allocations: 0 / 1.258 GB, free: 279.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/1.847, allocations: 6.469 kB / 1.258 GB, free: 279.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/1.851, allocations: 2.09 MB / 1.26 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/1.851, allocations: 2.875 kB / 1.26 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009972/1.852, allocations: 216.8 kB / 1.26 GB, free: 278.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004835/1.852, allocations: 80.88 kB / 1.26 GB, free: 278.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/1.853, allocations: 49.64 kB / 1.26 GB, free: 278.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/1.854, allocations: 1.545 MB / 1.262 GB, free: 277.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/1.854, allocations: 0 / 1.262 GB, free: 277.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004262/1.858, allocations: 2.82 MB / 1.264 GB, free: 276.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.859, allocations: 0.6284 MB / 1.265 GB, free: 275.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/1.86, allocations: 28.34 kB / 1.265 GB, free: 275.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009846/1.861, allocations: 114.7 kB / 1.265 GB, free: 275.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/1.861, allocations: 107.6 kB / 1.265 GB, free: 275.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/1.861, allocations: 67.84 kB / 1.265 GB, free: 275.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.01042/1.872, allocations: 12.8 MB / 1.278 GB, free: 271.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7.61e-07/1.872, allocations: 0 / 1.278 GB, free: 271.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003673/1.875, allocations: 1.286 MB / 1.279 GB, free: 270.9 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 (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 (124): * Single equations (assignments): 116 * 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: 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.002558/1.878, allocations: 0.9945 MB / 1.28 GB, free: 270.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009942/1.888, allocations: 15.74 MB / 1.295 GB, free: 254.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.888, allocations: 128 / 1.295 GB, free: 254.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002298/1.89, allocations: 2.467 MB / 1.298 GB, free: 251.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/1.892, allocations: 434 kB / 1.298 GB, free: 251.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02039/1.913, allocations: 21.3 MB / 1.319 GB, free: 230.2 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]