Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01049/0.0105, allocations: 89.53 kB / 15.04 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001222/0.001221, allocations: 173.6 kB / 15.92 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 1.963/1.963, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.243/2.243, allocations: 252.8 MB / 0.511 GB, free: 8.344 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006435/0.0006436, allocations: 10.47 kB / 0.6243 GB, free: 21.1 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2442, allocations: 106.2 MB / 0.7281 GB, free: 8.137 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006902/0.2511, allocations: 3.812 MB / 0.7318 GB, free: 4.305 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.004937/0.2561, allocations: 2.075 MB / 0.7338 GB, free: 2.219 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004088/0.2566, allocations: 7.938 kB / 0.7338 GB, free: 2.211 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.2569, allocations: 63.48 kB / 0.7339 GB, free: 2.148 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.2579, allocations: 243.3 kB / 0.7341 GB, free: 1.91 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.2591, allocations: 291.3 kB / 0.7344 GB, free: 1.625 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009547/0.2601, allocations: 479 kB / 0.7349 GB, free: 1.156 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.2619, allocations: 0.7299 MB / 0.7356 GB, free: 392 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004573/0.2623, allocations: 207.2 kB / 0.7358 GB, free: 184 kB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005485/0.2629, allocations: 242.9 kB / 0.736 GB, free: 15.94 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 8.915e-05/0.263, allocations: 24 kB / 0.736 GB, free: 15.92 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005785/0.2636, allocations: 179.8 kB / 0.7362 GB, free: 15.74 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.2638, allocations: 131.6 kB / 0.7363 GB, free: 15.61 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.264, allocations: 133.4 kB / 0.7364 GB, free: 15.48 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2652, allocations: 0.7249 MB / 0.7372 GB, free: 14.75 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2652, allocations: 0 / 0.7372 GB, free: 14.75 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.224e-06/0.2652, allocations: 0 / 0.7372 GB, free: 14.75 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.297e-06/0.2652, allocations: 0 / 0.7372 GB, free: 14.75 MB / 0.573 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.002343/0.2676, allocations: 0.8324 MB / 0.738 GB, free: 13.86 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.2676, allocations: 12.03 kB / 0.738 GB, free: 13.85 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.2678, allocations: 94.5 kB / 0.7381 GB, free: 13.75 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/0.2689, allocations: 135.1 kB / 0.7382 GB, free: 13.61 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/0.2698, allocations: 425.8 kB / 0.7386 GB, free: 13.16 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.111e-05/0.2698, allocations: 45 kB / 0.7386 GB, free: 13.11 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.27, allocations: 44 kB / 0.7387 GB, free: 13.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/0.2719, allocations: 0.6887 MB / 0.7394 GB, free: 12.35 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.2719, allocations: 3.938 kB / 0.7394 GB, free: 12.34 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.466e-05/0.272, allocations: 27.95 kB / 0.7394 GB, free: 12.32 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.2721, allocations: 52.97 kB / 0.7394 GB, free: 12.27 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.274, allocations: 0.566 MB / 0.74 GB, free: 11.7 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005391/0.2794, allocations: 2.912 MB / 0.7428 GB, free: 8.543 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.2812, allocations: 0.5676 MB / 0.7434 GB, free: 7.957 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006673/0.2819, allocations: 0.5701 MB / 0.744 GB, free: 7.258 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.283, allocations: 392.3 kB / 0.7443 GB, free: 6.855 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 3.136e-06/0.283, allocations: 4 kB / 0.7443 GB, free: 6.852 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.002446/0.2855, allocations: 0.7392 MB / 0.7451 GB, free: 6.105 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.2856, allocations: 97.11 kB / 0.7451 GB, free: 5.992 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.2861, allocations: 345.6 kB / 0.7455 GB, free: 5.648 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-05/0.2863, allocations: 41.81 kB / 0.7455 GB, free: 5.602 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.2866, allocations: 284.3 kB / 0.7458 GB, free: 5.316 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.2868, allocations: 149.9 kB / 0.7459 GB, free: 5.168 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.2868, allocations: 12 kB / 0.7459 GB, free: 5.156 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.287, allocations: 350.8 kB / 0.7463 GB, free: 4.805 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007737/0.2878, allocations: 237 kB / 0.7465 GB, free: 4.574 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008922/0.2887, allocations: 362.6 kB / 0.7468 GB, free: 4.18 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008624/0.2896, allocations: 289.9 kB / 0.7471 GB, free: 3.891 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.2896, allocations: 0 / 0.7471 GB, free: 3.891 MB / 0.573 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002013/0.2916, allocations: 0.6839 MB / 0.7478 GB, free: 3.195 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004756/0.2921, allocations: 1.077 MB / 0.7488 GB, free: 2.031 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.2921, allocations: 4 kB / 0.7488 GB, free: 2.027 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.2922, allocations: 4 kB / 0.7488 GB, free: 2.023 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009477/0.2931, allocations: 119.8 kB / 0.749 GB, free: 1.906 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.2932, allocations: 7.938 kB / 0.749 GB, free: 1.898 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008414/0.294, allocations: 79.47 kB / 0.749 GB, free: 1.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.2941, allocations: 16 kB / 0.7491 GB, free: 1.805 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2941, allocations: 4 kB / 0.7491 GB, free: 1.801 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001763/0.2959, allocations: 0.5837 MB / 0.7496 GB, free: 1.211 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2959, allocations: 0 / 0.7496 GB, free: 1.211 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2959, allocations: 8 kB / 0.7496 GB, free: 1.203 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007659/0.2967, allocations: 104.1 kB / 0.7497 GB, free: 1.102 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.2968, allocations: 8 kB / 0.7497 GB, free: 1.094 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.2975, allocations: 59.64 kB / 0.7498 GB, free: 1.035 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/0.2975, allocations: 20 kB / 0.7498 GB, free: 1.016 MB / 0.573 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.0005154/0.2981, allocations: 303.2 kB / 0.7501 GB, free: 0.7109 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2982, allocations: 47.44 kB / 0.7502 GB, free: 0.6641 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.3, allocations: 0.5838 MB / 0.7507 GB, free: 76 kB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3, allocations: 4 kB / 0.7507 GB, free: 72 kB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.3001, allocations: 4.047 kB / 0.7507 GB, free: 68 kB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.3001, allocations: 7.969 kB / 0.7507 GB, free: 60 kB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.3012, allocations: 0.6219 MB / 0.7514 GB, free: 15.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3012, allocations: 0 / 0.7514 GB, free: 15.39 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009975/0.3022, allocations: 99.84 kB / 0.7514 GB, free: 15.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.3023, allocations: 3.984 kB / 0.7515 GB, free: 15.29 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.3023, allocations: 8 kB / 0.7515 GB, free: 15.28 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.456e-05/0.3023, allocations: 4 kB / 0.7515 GB, free: 15.27 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3024, allocations: 3.938 kB / 0.7515 GB, free: 15.27 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.3049, allocations: 0.9034 MB / 0.7523 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.3052, allocations: 180.4 kB / 0.7525 GB, free: 14.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.3054, allocations: 12 kB / 0.7525 GB, free: 14.13 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.3059, allocations: 39.95 kB / 0.7526 GB, free: 14.09 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.3062, allocations: 47.92 kB / 0.7526 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.3062, allocations: 12 kB / 0.7526 GB, free: 14.04 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003882/0.3066, allocations: 243.2 kB / 0.7529 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.01e-07/0.3066, allocations: 0 / 0.7529 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001048/0.3077, allocations: 267.1 kB / 0.7531 GB, free: 13.54 MB / 0.5886 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.003192/0.3109, allocations: 1.545 MB / 0.7546 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00278/0.3137, allocations: 0.9753 MB / 0.7556 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3138, allocations: 0.875 kB / 0.7556 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008382/0.3146, allocations: 283.5 kB / 0.7558 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3159, allocations: 152.8 kB / 0.756 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008398/0.3243, allocations: 4.72 MB / 0.7606 GB, free: 5.703 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006392/0.325, allocations: 0.9145 MB / 0.7615 GB, free: 4.762 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009207/0.3259, allocations: 140.4 kB / 0.7616 GB, free: 4.621 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.3264, allocations: 195.4 kB / 0.7618 GB, free: 4.43 MB / 0.5886 GB Notification: Performance of SimCode: time 1.112e-06/0.3264, allocations: 0 / 0.7618 GB, free: 4.43 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0484/0.3749, allocations: 11.73 MB / 0.7733 GB, free: 8.891 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003186/0.3753, allocations: 209.8 kB / 0.7735 GB, free: 8.641 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.874/3.249, allocations: 7.875 kB / 0.7735 GB, free: 8.633 MB / 0.6042 GB