Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.368/1.368, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009451/0.0009452, allocations: 175.2 kB / 326.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.812/1.812, allocations: 205 MB / 0.5766 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007701/0.00077, allocations: 78.39 kB / 0.6803 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.000319, allocations: 13.39 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2032, allocations: 105.4 MB / 0.8967 GB, free: 68.12 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004766/0.208, allocations: 4.104 MB / 0.9008 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003152/0.2112, allocations: 2.233 MB / 0.9029 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.2115, allocations: 11.94 kB / 0.9029 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0009568/0.2124, allocations: 390.6 kB / 0.9033 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005743/0.213, allocations: 306.6 kB / 0.9036 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006855/0.2137, allocations: 373 kB / 0.904 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006276/0.2144, allocations: 0.9621 MB / 0.9049 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006072/0.215, allocations: 0.5029 MB / 0.9054 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.2152, allocations: 238.9 kB / 0.9056 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.2156, allocations: 314.6 kB / 0.9059 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.2156, allocations: 28 kB / 0.906 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004401/0.2161, allocations: 327.4 kB / 0.9063 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.2162, allocations: 143.5 kB / 0.9064 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.2164, allocations: 282.3 kB / 0.9067 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004984/0.2169, allocations: 0.7325 MB / 0.9074 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2169, allocations: 3.938 kB / 0.9074 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2169, allocations: 0 / 0.9074 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.2169, allocations: 0 / 0.9074 GB, free: 57.17 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.001255/0.2182, allocations: 0.8248 MB / 0.9082 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2182, allocations: 12.03 kB / 0.9082 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005969/0.2188, allocations: 128.1 kB / 0.9083 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.2193, allocations: 434.9 kB / 0.9087 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.2194, allocations: 45.38 kB / 0.9088 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.2194, allocations: 48.36 kB / 0.9088 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00092/0.2204, allocations: 0.6968 MB / 0.9095 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.2204, allocations: 3.938 kB / 0.9095 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.2204, allocations: 31.97 kB / 0.9095 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.358e-05/0.2205, allocations: 52.97 kB / 0.9096 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008904/0.2214, allocations: 0.5699 MB / 0.9102 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.224, allocations: 2.908 MB / 0.913 GB, free: 51.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008685/0.2248, allocations: 0.5676 MB / 0.9136 GB, free: 50.47 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.2252, allocations: 261.7 kB / 0.9138 GB, free: 50.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003215/0.2255, allocations: 0.5622 MB / 0.9143 GB, free: 49.52 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005453/0.2261, allocations: 396.3 kB / 0.9147 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 1.893e-06/0.2261, allocations: 7.938 kB / 0.9147 GB, free: 49.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001218/0.2273, allocations: 0.7472 MB / 0.9155 GB, free: 48.35 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.2274, allocations: 89.05 kB / 0.9155 GB, free: 48.24 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.2277, allocations: 345.6 kB / 0.9159 GB, free: 47.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.2277, allocations: 41.7 kB / 0.9159 GB, free: 47.85 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.2278, allocations: 284.4 kB / 0.9162 GB, free: 47.57 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.2279, allocations: 150.1 kB / 0.9163 GB, free: 47.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.228, allocations: 57.69 kB / 0.9164 GB, free: 47.36 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.969e-05/0.2281, allocations: 362.7 kB / 0.9167 GB, free: 46.99 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.2285, allocations: 237 kB / 0.917 GB, free: 46.76 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.2289, allocations: 365.1 kB / 0.9173 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007311/0.2296, allocations: 0.5789 MB / 0.9179 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2297, allocations: 0 / 0.9179 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009408/0.2306, allocations: 0.6985 MB / 0.9186 GB, free: 45.02 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.17e-05/0.2307, allocations: 193 kB / 0.9187 GB, free: 44.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2307, allocations: 4 kB / 0.9187 GB, free: 44.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.2307, allocations: 8 kB / 0.9188 GB, free: 44.78 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.2312, allocations: 111.8 kB / 0.9189 GB, free: 44.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2312, allocations: 4 kB / 0.9189 GB, free: 44.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.2316, allocations: 75.47 kB / 0.9189 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.2317, allocations: 23.94 kB / 0.919 GB, free: 44.57 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.272e-06/0.2317, allocations: 4 kB / 0.919 GB, free: 44.56 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008109/0.2325, allocations: 0.5799 MB / 0.9195 GB, free: 43.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.2325, allocations: 4 kB / 0.9195 GB, free: 43.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.177e-06/0.2325, allocations: 4.25 kB / 0.9195 GB, free: 43.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.2329, allocations: 111.9 kB / 0.9196 GB, free: 43.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2329, allocations: 4 kB / 0.9196 GB, free: 43.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.2332, allocations: 67.58 kB / 0.9197 GB, free: 43.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.2333, allocations: 24 kB / 0.9197 GB, free: 43.77 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002085/0.2335, allocations: 307.2 kB / 0.92 GB, free: 43.45 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.2335, allocations: 43.44 kB / 0.9201 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008784/0.2344, allocations: 0.5801 MB / 0.9206 GB, free: 42.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2344, allocations: 8 kB / 0.9206 GB, free: 42.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2345, allocations: 4 kB / 0.9206 GB, free: 42.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.2345, allocations: 11.86 kB / 0.9207 GB, free: 42.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004946/0.235, allocations: 0.6218 MB / 0.9213 GB, free: 42.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.235, allocations: 0 / 0.9213 GB, free: 42.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.2355, allocations: 99.84 kB / 0.9214 GB, free: 42.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.2355, allocations: 7.984 kB / 0.9214 GB, free: 42.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.2355, allocations: 4 kB / 0.9214 GB, free: 42.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2355, allocations: 4 kB / 0.9214 GB, free: 42.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2355, allocations: 0 / 0.9214 GB, free: 42.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.2367, allocations: 0.9017 MB / 0.9223 GB, free: 41.09 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.2369, allocations: 168.6 kB / 0.9224 GB, free: 40.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.537e-05/0.237, allocations: 16 kB / 0.9224 GB, free: 40.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.2374, allocations: 35.95 kB / 0.9225 GB, free: 40.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.2375, allocations: 47.88 kB / 0.9225 GB, free: 40.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.2376, allocations: 19.98 kB / 0.9225 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002482/0.2378, allocations: 243.2 kB / 0.9228 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2378, allocations: 4 kB / 0.9228 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005636/0.2384, allocations: 267.1 kB / 0.923 GB, free: 40.29 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001533/0.2386, allocations: 129 kB / 0.9231 GB, free: 40.16 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.2399, allocations: 0.9725 MB / 0.9241 GB, free: 39.16 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2399, allocations: 4 kB / 0.9241 GB, free: 39.15 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.2403, allocations: 280.4 kB / 0.9244 GB, free: 38.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008133/0.2412, allocations: 169.3 kB / 0.9245 GB, free: 38.71 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.2429, allocations: 1.317 MB / 0.9258 GB, free: 37.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.2433, allocations: 0.8989 MB / 0.9267 GB, free: 36.44 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.2434, allocations: 43.38 kB / 0.9267 GB, free: 36.39 MB / 0.6042 GB Notification: Performance of SimCode: time 4.2e-07/0.2434, allocations: 0 / 0.9267 GB, free: 36.39 MB / 0.6042 GB Notification: Performance of Templates: time 0.008754/0.2522, allocations: 7.771 MB / 0.9343 GB, free: 28.68 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)