Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.477/2.477, allocations: 251.1 MB / 266.1 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001599, allocations: 182.3 kB / 325.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.474/2.474, allocations: 205.4 MB / 0.5766 GB, free: 20.76 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 95.88 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004602/0.0004603, allocations: 15.72 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2119, allocations: 106.3 MB / 0.8989 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005723/0.2177, allocations: 3.797 MB / 0.9026 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004489/0.2222, allocations: 2.099 MB / 0.9046 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004773/0.2227, allocations: 4 kB / 0.9046 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.223, allocations: 63.48 kB / 0.9047 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.2241, allocations: 247.2 kB / 0.9049 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.2253, allocations: 297.7 kB / 0.9052 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001087/0.2264, allocations: 467 kB / 0.9057 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001672/0.2281, allocations: 0.7182 MB / 0.9064 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004842/0.2286, allocations: 211.2 kB / 0.9066 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005958/0.2292, allocations: 242.9 kB / 0.9068 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.2294, allocations: 20 kB / 0.9068 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.23, allocations: 179.8 kB / 0.907 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.2302, allocations: 135.5 kB / 0.9071 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2304, allocations: 133.4 kB / 0.9073 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.2314, allocations: 0.7287 MB / 0.908 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2314, allocations: 0 / 0.908 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.274e-06/0.2315, allocations: 0 / 0.908 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.2315, allocations: 0 / 0.908 GB, free: 56.11 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.002186/0.2337, allocations: 0.8286 MB / 0.9088 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2337, allocations: 12.03 kB / 0.9088 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.2348, allocations: 139.1 kB / 0.9089 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008577/0.2357, allocations: 425.8 kB / 0.9093 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.271e-05/0.2357, allocations: 36.98 kB / 0.9094 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.2359, allocations: 52 kB / 0.9094 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.2377, allocations: 0.6887 MB / 0.9101 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.2377, allocations: 7.984 kB / 0.9101 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.971e-05/0.2378, allocations: 23.98 kB / 0.9101 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.2379, allocations: 52.92 kB / 0.9102 GB, free: 53.72 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.2397, allocations: 0.5699 MB / 0.9107 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004877/0.2446, allocations: 2.905 MB / 0.9136 GB, free: 50 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.2462, allocations: 0.5582 MB / 0.9141 GB, free: 49.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005003/0.2468, allocations: 0.5629 MB / 0.9147 GB, free: 48.74 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000991/0.2478, allocations: 403 kB / 0.915 GB, free: 48.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 4.047e-06/0.2478, allocations: 4 kB / 0.915 GB, free: 48.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.002197/0.25, allocations: 0.7459 MB / 0.9158 GB, free: 47.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.2501, allocations: 93.23 kB / 0.9159 GB, free: 47.46 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.2505, allocations: 349.5 kB / 0.9162 GB, free: 47.11 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.743e-05/0.2506, allocations: 41.7 kB / 0.9162 GB, free: 47.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.2509, allocations: 280.5 kB / 0.9165 GB, free: 46.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.251, allocations: 157.7 kB / 0.9166 GB, free: 46.63 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.2511, allocations: 12 kB / 0.9167 GB, free: 46.62 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.2512, allocations: 354.8 kB / 0.917 GB, free: 46.26 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007056/0.2519, allocations: 241 kB / 0.9172 GB, free: 46.03 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008331/0.2527, allocations: 358.6 kB / 0.9176 GB, free: 45.63 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.2535, allocations: 281.5 kB / 0.9178 GB, free: 45.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2536, allocations: 0 / 0.9178 GB, free: 45.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001806/0.2554, allocations: 0.6873 MB / 0.9185 GB, free: 44.65 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002749/0.2557, allocations: 1.077 MB / 0.9196 GB, free: 43.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.2557, allocations: 4 kB / 0.9196 GB, free: 43.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.2557, allocations: 8 kB / 0.9196 GB, free: 43.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009218/0.2567, allocations: 111.8 kB / 0.9197 GB, free: 43.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.2567, allocations: 11.94 kB / 0.9197 GB, free: 43.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/0.2575, allocations: 67.64 kB / 0.9198 GB, free: 43.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.62e-05/0.2576, allocations: 28.22 kB / 0.9198 GB, free: 43.26 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2577, allocations: 4 kB / 0.9198 GB, free: 43.26 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001554/0.2592, allocations: 0.5795 MB / 0.9204 GB, free: 42.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2592, allocations: 4 kB / 0.9204 GB, free: 42.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2593, allocations: 4 kB / 0.9204 GB, free: 42.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/0.26, allocations: 103.8 kB / 0.9205 GB, free: 42.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.2601, allocations: 16.17 kB / 0.9205 GB, free: 42.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007151/0.2608, allocations: 71.48 kB / 0.9205 GB, free: 42.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.301e-05/0.2609, allocations: 16 kB / 0.9206 GB, free: 42.46 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.0004218/0.2613, allocations: 293.5 kB / 0.9208 GB, free: 42.17 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2614, allocations: 51.42 kB / 0.9209 GB, free: 42.12 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.2631, allocations: 0.5853 MB / 0.9215 GB, free: 41.53 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.2631, allocations: 8 kB / 0.9215 GB, free: 41.52 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2631, allocations: 0 / 0.9215 GB, free: 41.52 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.2631, allocations: 3.984 kB / 0.9215 GB, free: 41.52 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009489/0.2641, allocations: 0.6219 MB / 0.9221 GB, free: 40.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2641, allocations: 4 kB / 0.9221 GB, free: 40.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009732/0.2651, allocations: 99.84 kB / 0.9222 GB, free: 40.74 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.2651, allocations: 4 kB / 0.9222 GB, free: 40.74 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.458e-05/0.2652, allocations: 8 kB / 0.9222 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.2652, allocations: 4 kB / 0.9222 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.2652, allocations: 3.984 kB / 0.9222 GB, free: 40.72 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.2675, allocations: 0.9033 MB / 0.9231 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.2679, allocations: 176.6 kB / 0.9232 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.268, allocations: 16 kB / 0.9233 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005645/0.2686, allocations: 36.12 kB / 0.9233 GB, free: 39.55 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.2688, allocations: 47.94 kB / 0.9233 GB, free: 39.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/0.2688, allocations: 23.98 kB / 0.9234 GB, free: 39.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000323/0.2692, allocations: 243.1 kB / 0.9236 GB, free: 39.25 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.41e-07/0.2692, allocations: 0 / 0.9236 GB, free: 39.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0009791/0.2702, allocations: 267.1 kB / 0.9238 GB, free: 38.98 MB / 0.6042 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.0002249/0.2704, allocations: 133 kB / 0.924 GB, free: 38.85 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00242/0.2729, allocations: 0.968 MB / 0.9249 GB, free: 37.85 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.2729, allocations: 0 / 0.9249 GB, free: 37.85 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.2737, allocations: 280.5 kB / 0.9252 GB, free: 37.58 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.275, allocations: 157.4 kB / 0.9253 GB, free: 37.42 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.2778, allocations: 1.244 MB / 0.9266 GB, free: 36.15 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.2782, allocations: 0.9028 MB / 0.9274 GB, free: 35.22 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0008755/0.2791, allocations: 148.2 kB / 0.9276 GB, free: 35.07 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.2794, allocations: 43.42 kB / 0.9276 GB, free: 35.03 MB / 0.6042 GB Notification: Performance of SimCode: time 1.062e-06/0.2794, allocations: 4 kB / 0.9276 GB, free: 35.02 MB / 0.6042 GB Notification: Performance of Templates: time 0.02478/0.3042, allocations: 7.542 MB / 0.935 GB, free: 27.56 MB / 0.6042 GB