Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.659/2.659, allocations: 287.9 MB / 302.9 MB, free: 8.309 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001425/0.001424, allocations: 181.2 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.969/1.969, allocations: 205.4 MB / 0.6301 GB, free: 10.3 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 90.86 kB / 0.7434 GB, free: 6.316 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004606, allocations: 11 kB / 0.8662 GB, free: 141.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2126, allocations: 115.3 MB / 0.9788 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004476/0.2171, allocations: 3.789 MB / 0.9825 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003466/0.2206, allocations: 2.083 MB / 0.9845 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.2211, allocations: 7.938 kB / 0.9845 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2213, allocations: 63.48 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0007597/0.2221, allocations: 243.2 kB / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009336/0.223, allocations: 299.3 kB / 0.9851 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.2237, allocations: 471 kB / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.225, allocations: 0.7219 MB / 0.9862 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.2254, allocations: 211.2 kB / 0.9864 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.2258, allocations: 247 kB / 0.9867 GB, free: 20 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.923e-05/0.2258, allocations: 20 kB / 0.9867 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004482/0.2263, allocations: 183.7 kB / 0.9869 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.2264, allocations: 135.5 kB / 0.987 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.2266, allocations: 129.4 kB / 0.9871 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0007495/0.2273, allocations: 0.7249 MB / 0.9878 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.059e-06/0.2274, allocations: 0 / 0.9878 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.142e-06/0.2274, allocations: 0 / 0.9878 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.2274, allocations: 0 / 0.9878 GB, free: 18.81 MB / 0.6198 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.001553/0.229, allocations: 0.8325 MB / 0.9886 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.229, allocations: 12.03 kB / 0.9887 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008123/0.2298, allocations: 147 kB / 0.9888 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006213/0.2305, allocations: 417.9 kB / 0.9892 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.2305, allocations: 48.88 kB / 0.9892 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.703e-05/0.2306, allocations: 48 kB / 0.9893 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.232, allocations: 0.6925 MB / 0.99 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.232, allocations: 4 kB / 0.99 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.2321, allocations: 20 kB / 0.99 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.819e-05/0.2322, allocations: 52.97 kB / 0.99 GB, free: 16.42 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.2335, allocations: 0.5815 MB / 0.9906 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.2372, allocations: 2.897 MB / 0.9934 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.2385, allocations: 0.5677 MB / 0.994 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003789/0.2389, allocations: 0.5669 MB / 0.9945 GB, free: 11.42 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007683/0.2397, allocations: 396.5 kB / 0.9949 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.437e-06/0.2397, allocations: 0 / 0.9949 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001761/0.2415, allocations: 0.7498 MB / 0.9957 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.2415, allocations: 81.11 kB / 0.9957 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/0.242, allocations: 349.6 kB / 0.9961 GB, free: 9.812 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.9e-05/0.242, allocations: 41.7 kB / 0.9961 GB, free: 9.766 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.2422, allocations: 276.4 kB / 0.9964 GB, free: 9.488 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.2424, allocations: 146 kB / 0.9965 GB, free: 9.344 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.2424, allocations: 12 kB / 0.9965 GB, free: 9.332 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.2425, allocations: 362.8 kB / 0.9969 GB, free: 8.969 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005489/0.2431, allocations: 237 kB / 0.9971 GB, free: 8.738 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/0.2437, allocations: 358.7 kB / 0.9974 GB, free: 8.344 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.2443, allocations: 282.4 kB / 0.9977 GB, free: 8.062 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.2443, allocations: 0 / 0.9977 GB, free: 8.062 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001472/0.2458, allocations: 0.6909 MB / 0.9984 GB, free: 7.359 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000239/0.2461, allocations: 1.069 MB / 0.9994 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2461, allocations: 11.94 kB / 0.9994 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.2461, allocations: 4 kB / 0.9994 GB, free: 6.188 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.2467, allocations: 107.9 kB / 0.9995 GB, free: 6.082 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2468, allocations: 7.938 kB / 0.9995 GB, free: 6.074 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000566/0.2473, allocations: 83.61 kB / 0.9996 GB, free: 5.992 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/0.2474, allocations: 20 kB / 0.9996 GB, free: 5.973 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.2474, allocations: 9.25 kB / 0.9997 GB, free: 5.965 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001241/0.2487, allocations: 0.5756 MB / 1 GB, free: 5.383 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.2487, allocations: 4.25 kB / 1 GB, free: 5.379 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.2487, allocations: 8 kB / 1 GB, free: 5.371 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.2492, allocations: 103.8 kB / 1 GB, free: 5.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.642e-06/0.2493, allocations: 4 kB / 1 GB, free: 5.266 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.2498, allocations: 67.55 kB / 1 GB, free: 5.199 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.133e-05/0.2498, allocations: 27.92 kB / 1 GB, free: 5.172 MB / 0.6198 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.00036/0.2502, allocations: 295.2 kB / 1.001 GB, free: 4.875 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-05/0.2503, allocations: 47.59 kB / 1.001 GB, free: 4.828 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00129/0.2516, allocations: 0.5929 MB / 1.001 GB, free: 4.227 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.725e-06/0.2516, allocations: 12 kB / 1.001 GB, free: 4.215 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.608e-06/0.2517, allocations: 0 / 1.001 GB, free: 4.215 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.574e-06/0.2517, allocations: 0 / 1.001 GB, free: 4.215 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007488/0.2524, allocations: 0.6103 MB / 1.002 GB, free: 3.555 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.504e-06/0.2525, allocations: 0 / 1.002 GB, free: 3.555 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006415/0.2531, allocations: 107.8 kB / 1.002 GB, free: 3.449 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.82e-06/0.2531, allocations: 4 kB / 1.002 GB, free: 3.445 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.2532, allocations: 8 kB / 1.002 GB, free: 3.438 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.308e-06/0.2532, allocations: 4 kB / 1.002 GB, free: 3.434 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.246e-06/0.2532, allocations: 0 / 1.002 GB, free: 3.434 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.255, allocations: 0.9116 MB / 1.003 GB, free: 2.492 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.2553, allocations: 180.4 kB / 1.003 GB, free: 2.297 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.784e-05/0.2554, allocations: 12 kB / 1.003 GB, free: 2.285 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.2558, allocations: 36.14 kB / 1.003 GB, free: 2.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.256, allocations: 51.92 kB / 1.003 GB, free: 2.199 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.256, allocations: 20 kB / 1.003 GB, free: 2.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002826/0.2563, allocations: 247.2 kB / 1.003 GB, free: 1.938 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.019e-06/0.2563, allocations: 0 / 1.003 GB, free: 1.938 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0008978/0.2573, allocations: 259.1 kB / 1.004 GB, free: 1.684 MB / 0.6198 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.0002057/0.2575, allocations: 123.2 kB / 1.004 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001937/0.2594, allocations: 0.97 MB / 1.005 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.384e-06/0.2595, allocations: 0.9375 kB / 1.005 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006034/0.2601, allocations: 283.7 kB / 1.005 GB, free: 284 kB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009252/0.261, allocations: 157.3 kB / 1.005 GB, free: 128 kB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.2636, allocations: 1.252 MB / 1.006 GB, free: 14.85 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006947/0.2644, allocations: 0.9067 MB / 1.007 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000772/0.2652, allocations: 144.3 kB / 1.007 GB, free: 13.77 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.2654, allocations: 43.44 kB / 1.007 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of SimCode: time 1.555e-06/0.2654, allocations: 0 / 1.007 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of Templates: time 0.01961/0.285, allocations: 7.544 MB / 1.015 GB, free: 6.27 MB / 0.6355 GB