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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.056/4.056, allocations: 432.6 MB / 445.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.658e-05/3.687e-05, allocations: 8.062 kB / 0.5383 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2318, allocations: 98.74 MB / 0.6347 GB, free: 1.875 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3141/0.546, allocations: 144.7 MB / 0.776 GB, free: 0.9883 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004495/0.5465, allocations: 91.94 kB / 0.7761 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6871/1.234, allocations: 29.07 MB / 0.8045 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.015e-06/1.234, allocations: 7.781 kB / 0.8045 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.895e-05/1.234, allocations: 15.47 kB / 0.8045 GB, free: 135.4 MB / 0.6511 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.002196/1.236, allocations: 0.823 MB / 0.8053 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/1.236, allocations: 7.875 kB / 0.8053 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/1.236, allocations: 90.11 kB / 0.8054 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/1.237, allocations: 145.6 kB / 0.8056 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008688/1.238, allocations: 444.5 kB / 0.806 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.874e-05/1.238, allocations: 40.36 kB / 0.806 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/1.239, allocations: 50.53 kB / 0.8061 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/1.24, allocations: 0.6497 MB / 0.8067 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/1.24, allocations: 0 / 0.8067 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.005e-05/1.24, allocations: 27.97 kB / 0.8067 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.991e-05/1.24, allocations: 44.98 kB / 0.8068 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/1.241, allocations: 0.527 MB / 0.8073 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/1.246, allocations: 2.837 MB / 0.8101 GB, free: 130 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/1.247, allocations: 0.5487 MB / 0.8106 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005074/1.248, allocations: 245.6 kB / 0.8108 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000473/1.249, allocations: 0.5625 MB / 0.8114 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008186/1.249, allocations: 391.8 kB / 0.8117 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.277e-06/1.249, allocations: 0 / 0.8117 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001341/1.251, allocations: 0.5072 MB / 0.8122 GB, free: 127.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/1.251, allocations: 101.5 kB / 0.8123 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/1.251, allocations: 291.6 kB / 0.8126 GB, free: 127.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.019e-05/1.251, allocations: 45.7 kB / 0.8127 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/1.252, allocations: 276.4 kB / 0.8129 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/1.252, allocations: 157.8 kB / 0.8131 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/1.252, allocations: 12 kB / 0.8131 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.932e-05/1.252, allocations: 350.8 kB / 0.8134 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/1.253, allocations: 221 kB / 0.8136 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006481/1.253, allocations: 346.4 kB / 0.814 GB, free: 125.8 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/1.254, allocations: 270.2 kB / 0.8142 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/1.254, allocations: 0 / 0.8142 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001491/1.255, allocations: 0.6662 MB / 0.8149 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002586/1.256, allocations: 1.072 MB / 0.8159 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.256, allocations: 4 kB / 0.8159 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/1.256, allocations: 4.188 kB / 0.8159 GB, free: 123.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/1.257, allocations: 123.8 kB / 0.816 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/1.257, allocations: 7.938 kB / 0.816 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008879/1.258, allocations: 67.62 kB / 0.8161 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/1.258, allocations: 20 kB / 0.8161 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/1.258, allocations: 4 kB / 0.8161 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/1.259, allocations: 0.5523 MB / 0.8167 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/1.259, allocations: 4 kB / 0.8167 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/1.259, allocations: 7.953 kB / 0.8167 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007759/1.26, allocations: 107.8 kB / 0.8168 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/1.26, allocations: 4 kB / 0.8168 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006897/1.26, allocations: 67.72 kB / 0.8169 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.452e-05/1.261, allocations: 24 kB / 0.8169 GB, free: 122.7 MB / 0.6511 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0001973/1.261, allocations: 147 kB / 0.817 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/1.261, allocations: 43.53 kB / 0.8171 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/1.262, allocations: 0.5711 MB / 0.8176 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/1.262, allocations: 7.953 kB / 0.8176 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.262, allocations: 0 / 0.8176 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/1.262, allocations: 0 / 0.8176 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009608/1.263, allocations: 0.6303 MB / 0.8182 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.263, allocations: 0 / 0.8182 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009206/1.264, allocations: 95.86 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/1.264, allocations: 0 / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-05/1.264, allocations: 15.98 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/1.264, allocations: 7.938 kB / 0.8184 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.264, allocations: 4.141 kB / 0.8184 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/1.266, allocations: 0.8697 MB / 0.8192 GB, free: 120.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/1.267, allocations: 180.4 kB / 0.8194 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/1.267, allocations: 15.94 kB / 0.8194 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/1.267, allocations: 43.91 kB / 0.8194 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/1.267, allocations: 52.5 kB / 0.8195 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.273e-05/1.268, allocations: 19.98 kB / 0.8195 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003288/1.268, allocations: 234.2 kB / 0.8197 GB, free: 119.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.51e-07/1.268, allocations: 0 / 0.8197 GB, free: 119.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001002/1.269, allocations: 283.1 kB / 0.82 GB, free: 119.3 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * 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.00211/1.271, allocations: 1.538 MB / 0.8215 GB, free: 117.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001945/1.273, allocations: 0.9324 MB / 0.8224 GB, free: 116.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/1.273, allocations: 0 / 0.8224 GB, free: 116.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005754/1.274, allocations: 263.4 kB / 0.8227 GB, free: 116.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/1.275, allocations: 149.2 kB / 0.8228 GB, free: 116.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/1.278, allocations: 0.9566 MB / 0.8237 GB, free: 115.4 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/1.278, allocations: 0.9074 MB / 0.8246 GB, free: 114.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001171/1.279, allocations: 164.4 kB / 0.8248 GB, free: 114.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006146/1.28, allocations: 183.4 kB / 0.825 GB, free: 114.1 MB / 0.6511 GB Notification: Performance of SimCode: time 3.697e-06/1.28, allocations: 0 / 0.825 GB, free: 114.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04354/1.323, allocations: 12.49 MB / 0.8372 GB, free: 101.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/1.324, allocations: 172.1 kB / 0.8373 GB, free: 101.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/4.214, allocations: 0 / 0.8373 GB, free: 101.6 MB / 0.6511 GB