Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.116/4.116, allocations: 433.2 MB / 440.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.62e-05, allocations: 2.344 kB / 0.5325 GB, free: 12.66 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2422, allocations: 98.73 MB / 0.6289 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2868/0.5291, allocations: 142.5 MB / 0.7681 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003793/0.5295, allocations: 95.92 kB / 0.7682 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6456/1.175, allocations: 27.05 MB / 0.7946 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.643e-06/1.175, allocations: 0 / 0.7946 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.485e-05/1.175, allocations: 11.66 kB / 0.7946 GB, free: 141.9 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.00219/1.177, allocations: 0.8134 MB / 0.7954 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.177, allocations: 8.656 kB / 0.7954 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/1.179, allocations: 153.7 kB / 0.7956 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008644/1.18, allocations: 447.6 kB / 0.796 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/1.18, allocations: 14.62 kB / 0.796 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/1.18, allocations: 33.94 kB / 0.796 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001187/1.181, allocations: 454 kB / 0.7965 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/1.182, allocations: 0.5851 MB / 0.7971 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/1.182, allocations: 1.094 kB / 0.7971 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.139e-05/1.183, allocations: 12.19 kB / 0.7971 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.23e-05/1.183, allocations: 43.84 kB / 0.7971 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/1.187, allocations: 2.734 MB / 0.7998 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/1.189, allocations: 0.5286 MB / 0.8003 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/1.189, allocations: 236.5 kB / 0.8005 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000468/1.19, allocations: 0.5601 MB / 0.8011 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007579/1.19, allocations: 375.9 kB / 0.8014 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.797e-06/1.19, allocations: 0 / 0.8014 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001343/1.192, allocations: 499 kB / 0.8019 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/1.192, allocations: 96.98 kB / 0.802 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004014/1.192, allocations: 275.8 kB / 0.8023 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.376e-05/1.192, allocations: 33.67 kB / 0.8023 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/1.192, allocations: 275.8 kB / 0.8025 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/1.193, allocations: 153.4 kB / 0.8027 GB, free: 137 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/1.193, allocations: 3.969 kB / 0.8027 GB, free: 137 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.417e-05/1.193, allocations: 350.6 kB / 0.803 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/1.193, allocations: 214.9 kB / 0.8032 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/1.194, allocations: 326.4 kB / 0.8036 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005542/1.194, allocations: 244.5 kB / 0.8038 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/1.194, allocations: 0 / 0.8038 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001328/1.196, allocations: 0.5907 MB / 0.8044 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000239/1.196, allocations: 1.075 MB / 0.8054 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.196, allocations: 3.656 kB / 0.8054 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.837e-05/1.196, allocations: 7.281 kB / 0.8054 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/1.197, allocations: 115.2 kB / 0.8055 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/1.197, allocations: 11.56 kB / 0.8055 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008531/1.198, allocations: 61.78 kB / 0.8056 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.485e-05/1.198, allocations: 21.03 kB / 0.8056 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/1.198, allocations: 3.469 kB / 0.8056 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001142/1.199, allocations: 471.2 kB / 0.8061 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/1.199, allocations: 7.75 kB / 0.8061 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/1.199, allocations: 7.812 kB / 0.8061 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/1.2, allocations: 121.5 kB / 0.8062 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/1.2, allocations: 7.75 kB / 0.8062 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007446/1.201, allocations: 53.52 kB / 0.8063 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/1.201, allocations: 26.44 kB / 0.8063 GB, free: 134.3 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.0002061/1.201, allocations: 124.6 kB / 0.8064 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001125/1.202, allocations: 489.8 kB / 0.8069 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.309e-05/1.202, allocations: 52.52 kB / 0.8069 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/1.204, allocations: 0.5253 MB / 0.8074 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/1.204, allocations: 7.031 kB / 0.8074 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/1.204, allocations: 0 / 0.8074 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/1.204, allocations: 3.984 kB / 0.8074 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008994/1.205, allocations: 0.542 MB / 0.808 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.205, allocations: 0 / 0.808 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009207/1.205, allocations: 95.39 kB / 0.8081 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/1.205, allocations: 3.938 kB / 0.8081 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/1.206, allocations: 0 / 0.8081 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/1.206, allocations: 11.38 kB / 0.8081 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.206, allocations: 0 / 0.8081 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/1.207, allocations: 0.837 MB / 0.8089 GB, free: 132.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/1.208, allocations: 178.9 kB / 0.8091 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/1.208, allocations: 5.578 kB / 0.8091 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/1.208, allocations: 34.48 kB / 0.8091 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/1.208, allocations: 47.98 kB / 0.8092 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/1.209, allocations: 17.8 kB / 0.8092 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002799/1.209, allocations: 224.3 kB / 0.8094 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.3e-07/1.209, allocations: 0 / 0.8094 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001053/1.21, allocations: 249.7 kB / 0.8096 GB, free: 132.2 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.002039/1.212, allocations: 1.503 MB / 0.8111 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001852/1.214, allocations: 0.8889 MB / 0.812 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.214, allocations: 0 / 0.812 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005276/1.214, allocations: 253.6 kB / 0.8122 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.216, allocations: 157.3 kB / 0.8124 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/1.219, allocations: 0.8951 MB / 0.8132 GB, free: 129.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/1.219, allocations: 0.9152 MB / 0.8141 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001026/1.22, allocations: 164.4 kB / 0.8143 GB, free: 128.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004539/1.221, allocations: 179.4 kB / 0.8144 GB, free: 128 MB / 0.6511 GB Notification: Performance of SimCode: time 1.243e-06/1.221, allocations: 0 / 0.8144 GB, free: 128 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06567/1.286, allocations: 11.82 MB / 0.826 GB, free: 116.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002399/1.287, allocations: 152.7 kB / 0.8261 GB, free: 116.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.845/4.131, allocations: 0 / 0.8261 GB, free: 116.1 MB / 0.6511 GB