Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.004346/0.004351, allocations: 237.8 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001213/0.001213, allocations: 179.6 kB / 16.68 MB, free: 5.469 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.951/3.951, allocations: 389.1 MB / 406.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.394/4.394, allocations: 472.3 MB / 0.9024 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0006706/0.000671, allocations: 12 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2068, allocations: 98.73 MB / 1.105 GB, free: 42.12 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.0132/0.2201, allocations: 5.343 MB / 1.11 GB, free: 36.76 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.007312/0.2275, allocations: 2.07 MB / 1.112 GB, free: 34.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000705/0.2283, allocations: 8 kB / 1.112 GB, free: 34.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.2289, allocations: 59.44 kB / 1.112 GB, free: 34.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0017/0.2306, allocations: 254.8 kB / 1.112 GB, free: 34.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.2328, allocations: 303.3 kB / 1.112 GB, free: 34.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002098/0.2349, allocations: 0.8254 MB / 1.113 GB, free: 33.25 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.2378, allocations: 0.7192 MB / 1.114 GB, free: 32.52 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008555/0.2387, allocations: 230.9 kB / 1.114 GB, free: 32.29 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.2399, allocations: 306.2 kB / 1.114 GB, free: 32 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0002547/0.2402, allocations: 20 kB / 1.114 GB, free: 31.98 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009812/0.2412, allocations: 187.7 kB / 1.115 GB, free: 31.79 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0003539/0.2416, allocations: 151.5 kB / 1.115 GB, free: 31.64 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.242, allocations: 129.4 kB / 1.115 GB, free: 31.51 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001791/0.2438, allocations: 0.7289 MB / 1.116 GB, free: 30.78 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.2439, allocations: 0 / 1.116 GB, free: 30.78 MB / 0.6042 GB Notification: Performance of FrontEnd: time 4.098e-06/0.2439, allocations: 0 / 1.116 GB, free: 30.78 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.902e-05/0.2439, allocations: 0 / 1.116 GB, free: 30.78 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.003515/0.2475, allocations: 0.8376 MB / 1.116 GB, free: 29.89 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/0.2476, allocations: 8.031 kB / 1.116 GB, free: 29.89 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.2494, allocations: 139 kB / 1.117 GB, free: 29.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.251, allocations: 418 kB / 1.117 GB, free: 29.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.2511, allocations: 40.47 kB / 1.117 GB, free: 29.27 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002718/0.2514, allocations: 47.98 kB / 1.117 GB, free: 29.22 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.2544, allocations: 0.6956 MB / 1.118 GB, free: 28.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.2545, allocations: 3.938 kB / 1.118 GB, free: 28.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.2547, allocations: 27.97 kB / 1.118 GB, free: 28.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001946/0.2549, allocations: 52.91 kB / 1.118 GB, free: 28.42 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002969/0.2579, allocations: 0.5677 MB / 1.118 GB, free: 27.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007835/0.2658, allocations: 2.809 MB / 1.121 GB, free: 24.84 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.2687, allocations: 0.5648 MB / 1.122 GB, free: 24.27 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.2699, allocations: 261.5 kB / 1.122 GB, free: 24.01 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007942/0.2708, allocations: 0.5622 MB / 1.122 GB, free: 23.32 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001628/0.2725, allocations: 414.5 kB / 1.123 GB, free: 22.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 6.542e-06/0.2725, allocations: 0 / 1.123 GB, free: 22.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.003798/0.2763, allocations: 0.7438 MB / 1.124 GB, free: 22.16 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.2765, allocations: 87.7 kB / 1.124 GB, free: 22.05 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007558/0.2772, allocations: 349.5 kB / 1.124 GB, free: 21.71 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.2774, allocations: 41.7 kB / 1.124 GB, free: 21.67 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.2777, allocations: 280.4 kB / 1.124 GB, free: 21.39 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.278, allocations: 149.9 kB / 1.124 GB, free: 21.24 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.755e-05/0.2781, allocations: 13.19 kB / 1.124 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2782, allocations: 346.8 kB / 1.125 GB, free: 20.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.2795, allocations: 244.3 kB / 1.125 GB, free: 20.64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.2808, allocations: 366.1 kB / 1.125 GB, free: 20.25 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.282, allocations: 284.3 kB / 1.126 GB, free: 19.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.282, allocations: 3.438 kB / 1.126 GB, free: 19.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002975/0.285, allocations: 0.6928 MB / 1.126 GB, free: 19.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.2852, allocations: 197.7 kB / 1.127 GB, free: 19.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.2853, allocations: 0 / 1.127 GB, free: 19.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.379e-05/0.2853, allocations: 8.938 kB / 1.127 GB, free: 19.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.2869, allocations: 115.8 kB / 1.127 GB, free: 18.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.282e-05/0.287, allocations: 8.594 kB / 1.127 GB, free: 18.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.2884, allocations: 78.03 kB / 1.127 GB, free: 18.83 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.2885, allocations: 20 kB / 1.127 GB, free: 18.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2885, allocations: 4 kB / 1.127 GB, free: 18.8 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002639/0.2912, allocations: 0.5741 MB / 1.127 GB, free: 18.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.2913, allocations: 0 / 1.127 GB, free: 18.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2913, allocations: 10.94 kB / 1.127 GB, free: 18.22 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.2923, allocations: 107.8 kB / 1.127 GB, free: 18.12 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.2924, allocations: 4 kB / 1.127 GB, free: 18.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.2931, allocations: 66.23 kB / 1.128 GB, free: 18.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.503e-05/0.2932, allocations: 19.95 kB / 1.128 GB, free: 18.03 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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.0004532/0.2936, allocations: 301.4 kB / 1.128 GB, free: 17.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.2938, allocations: 47.44 kB / 1.128 GB, free: 17.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.2954, allocations: 0.6014 MB / 1.128 GB, free: 17.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.2954, allocations: 3.984 kB / 1.128 GB, free: 17.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.2955, allocations: 7.719 kB / 1.128 GB, free: 17.07 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.2957, allocations: 180.4 kB / 1.129 GB, free: 16.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.2959, allocations: 19.89 kB / 1.129 GB, free: 16.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006968/0.2966, allocations: 55.92 kB / 1.129 GB, free: 16.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.2968, allocations: 48.36 kB / 1.129 GB, free: 16.76 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002112/0.2989, allocations: 0.7677 MB / 1.13 GB, free: 15.99 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002313/0.3012, allocations: 1.139 MB / 1.131 GB, free: 14.84 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006906/0.302, allocations: 275.4 kB / 1.131 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003237/0.3023, allocations: 239.2 kB / 1.131 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of Backend: time 7.02e-07/0.3023, allocations: 0 / 1.131 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002699/0.305, allocations: 0.9181 MB / 1.132 GB, free: 13.4 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002855/0.3079, allocations: 1.62 MB / 1.134 GB, free: 11.76 MB / 0.6042 GB Notification: Performance of Templates: time 0.02631/0.3343, allocations: 10.89 MB / 1.144 GB, free: 1.406 MB / 0.6042 GB